[PATCH] i386/smpboot: use msleep() instead of schedule_timeout()

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>
This commit is contained in:
Nishanth Aravamudan 2005-09-10 00:26:50 -07:00 коммит произвёл Linus Torvalds
Родитель f4c9925ccc
Коммит aeb8397b6a
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -1330,8 +1330,7 @@ void __cpu_die(unsigned int cpu)
printk ("CPU %d is now offline\n", cpu); printk ("CPU %d is now offline\n", cpu);
return; return;
} }
current->state = TASK_UNINTERRUPTIBLE; msleep(100);
schedule_timeout(HZ/10);
} }
printk(KERN_ERR "CPU %u didn't die...\n", cpu); printk(KERN_ERR "CPU %u didn't die...\n", cpu);
} }