Commit 943df21e authored by Domen Puncer's avatar Domen Puncer Committed by Linus Torvalds

[PATCH] i386/traps: replace schedule_timeout() with ssleep()

Use ssleep() instead of schedule_timeout() to guarantee the task
delays as expected.
Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarDomen Puncer <domen@coderock.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 77f6425b
...@@ -345,8 +345,7 @@ void die(const char * str, struct pt_regs * regs, long err) ...@@ -345,8 +345,7 @@ void die(const char * str, struct pt_regs * regs, long err)
if (panic_on_oops) { if (panic_on_oops) {
printk(KERN_EMERG "Fatal exception: panic in 5 seconds\n"); printk(KERN_EMERG "Fatal exception: panic in 5 seconds\n");
set_current_state(TASK_UNINTERRUPTIBLE); ssleep(5);
schedule_timeout(5 * HZ);
panic("Fatal exception"); panic("Fatal exception");
} }
do_exit(SIGSEGV); do_exit(SIGSEGV);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment