Skip to content

Commit 5c888d5

Browse files
Nishanth AravamudanLinus Torvalds
authored andcommitted
[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>
1 parent 813e678 commit 5c888d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/xtensa/kernel/traps.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <linux/module.h>
3030
#include <linux/stringify.h>
3131
#include <linux/kallsyms.h>
32+
#include <linux/delay.h>
3233

3334
#include <asm/ptrace.h>
3435
#include <asm/timex.h>
@@ -488,8 +489,7 @@ void die(const char * str, struct pt_regs * regs, long err)
488489

489490
if (panic_on_oops) {
490491
printk(KERN_EMERG "Fatal exception: panic in 5 seconds\n");
491-
set_current_state(TASK_UNINTERRUPTIBLE);
492-
schedule_timeout(5 * HZ);
492+
ssleep(5);
493493
panic("Fatal exception");
494494
}
495495
do_exit(err);

0 commit comments

Comments
 (0)