Skip to content

Commit

Permalink
[PATCH] xtensa: use ssleep() instead of schedule_timeout()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nishanth Aravamudan authored and Linus Torvalds committed Jul 12, 2005
1 parent 813e678 commit 5c888d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/xtensa/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <linux/module.h>
#include <linux/stringify.h>
#include <linux/kallsyms.h>
#include <linux/delay.h>

#include <asm/ptrace.h>
#include <asm/timex.h>
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5c888d5

Please sign in to comment.