[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 <nacc@us.ibm.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Nishanth Aravamudan 2005-07-12 13:58:26 -07:00 committed by Linus Torvalds
parent 813e678364
commit 5c888d5318
1 changed files with 2 additions and 2 deletions

View File

@ -29,6 +29,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/stringify.h> #include <linux/stringify.h>
#include <linux/kallsyms.h> #include <linux/kallsyms.h>
#include <linux/delay.h>
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <asm/timex.h> #include <asm/timex.h>
@ -488,8 +489,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(err); do_exit(err);