* [KJ] [PATCH 4/14] i386/smpboot: use msleep() instead of
@ 2005-07-09 0:05 Nishanth Aravamudan
0 siblings, 0 replies; only message in thread
From: Nishanth Aravamudan @ 2005-07-09 0:05 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 823 bytes --]
From: Nishanth Aravamudan <nacc@us.ibm.com>
Description: Replace schedule_timeout() with msleep() to guarantee the
task delays as expected.
Patch is compile-tested.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
---
smpboot.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
diff -urpN 2.6.13-rc2-kj/arch/i386/kernel/smpboot.c 2.6.13-rc2-kj-dev/arch/i386/kernel/smpboot.c
--- 2.6.13-rc2-kj/arch/i386/kernel/smpboot.c 2005-07-06 07:57:17.000000000 -0700
+++ 2.6.13-rc2-kj-dev/arch/i386/kernel/smpboot.c 2005-07-06 13:27:06.000000000 -0700
@@ -1327,8 +1327,7 @@ void __cpu_die(unsigned int cpu)
printk ("CPU %d is now offline\n", cpu);
return;
}
- current->state = TASK_UNINTERRUPTIBLE;
- schedule_timeout(HZ/10);
+ msleep(100);
}
printk(KERN_ERR "CPU %u didn't die...\n", cpu);
}
[-- 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:05 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:05 [KJ] [PATCH 4/14] i386/smpboot: use msleep() instead of Nishanth Aravamudan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.