* [KJ] [PATCH 8/14] xtensa: use ssleep() instead of schedule_timeout()
@ 2005-07-09 0:12 Nishanth Aravamudan
0 siblings, 0 replies; only message in thread
From: Nishanth Aravamudan @ 2005-07-09 0:12 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]
From: Nishanth Aravamudan <nacc@us.ibm.com>
Description: Replace schedule_timeout() with ssleep() to guarantee the
task delays as expected.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
---
traps.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -urp 2.6.13-rc2-kj/arch/xtensa/kernel/traps.c 2.6.13-rc2-kj-dev/arch/xtensa/kernel/traps.c
--- 2.6.13-rc2-kj/arch/xtensa/kernel/traps.c 2005-07-06 07:57:18.000000000 -0700
+++ 2.6.13-rc2-kj-dev/arch/xtensa/kernel/traps.c 2005-07-06 13:35:36.000000000 -0700
@@ -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_reg
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);
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-07-09 0:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-09 0:12 [KJ] [PATCH 8/14] xtensa: use ssleep() instead of schedule_timeout() Nishanth Aravamudan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).