From: Nishanth Aravamudan Date: Tue, 12 Jul 2005 20:58:26 +0000 (-0700) Subject: [PATCH] xtensa: use ssleep() instead of schedule_timeout() X-Git-Tag: v2.6.13-rc3~41 X-Git-Url: http://pilppa.org/gitweb/?a=commitdiff_plain;h=5c888d531823f8ce2853fb717ebefbcca9acdcd0;p=linux-2.6-omap-h63xx.git [PATCH] xtensa: use ssleep() instead of schedule_timeout() Replace schedule_timeout() with ssleep() to guarantee the task delays as expected. Signed-off-by: Nishanth Aravamudan Signed-off-by: Chris Zankel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/xtensa/kernel/traps.c b/arch/xtensa/kernel/traps.c index 804246e743b..225d64d73f0 100644 --- a/arch/xtensa/kernel/traps.c +++ b/arch/xtensa/kernel/traps.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -488,8 +489,7 @@ void die(const char * str, struct pt_regs * regs, long err) if (panic_on_oops) { printk(KERN_EMERG "Fatal exception: panic in 5 seconds\n"); - set_current_state(TASK_UNINTERRUPTIBLE); - schedule_timeout(5 * HZ); + ssleep(5); panic("Fatal exception"); } do_exit(err);