xtensa: use ssleep() instead of schedule_timeout()
Subsystems (2)
PATCH 8/14 xtensa: use ssleep() instead of schedule_timeout()
From: Nishanth Aravamudan <[email protected]>
Description: Replace schedule_timeout() with ssleep() to guarantee the task delays as expected.
Signed-off-by Nishanth Aravamudan <[email protected]>
---
traps.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/xtensa/kernel/traps.c +2 -2
@@ -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>
@@ -488,8 +489,7 @@ void die(const char * str, struct pt_regif (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);
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors