Skip to content

Commit

Permalink
[PATCH] i386/smpboot: use msleep() instead of schedule_timeout()
Browse files Browse the repository at this point in the history
Replace schedule_timeout() with msleep() to guarantee the task delays as
expected.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Nishanth Aravamudan authored and Linus Torvalds committed Sep 10, 2005
1 parent f4c9925 commit aeb8397
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/i386/kernel/smpboot.c
Expand Up @@ -1330,8 +1330,7 @@ void __cpu_die(unsigned int cpu)
printk ("CPU %d is now offline\n", cpu);
return;
}
current->state = TASK_UNINTERRUPTIBLE;
schedule_timeout(HZ/10);
msleep(100);
}
printk(KERN_ERR "CPU %u didn't die...\n", cpu);
}
Expand Down

0 comments on commit aeb8397

Please sign in to comment.