* [patch 5/5] i386/smpboot: use msleep() instead of schedule_timeout()
@ 2005-07-14 21:44 domen
0 siblings, 0 replies; only message in thread
From: domen @ 2005-07-14 21:44 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, Nishanth Aravamudan, domen
[-- Attachment #1: msleep-arch_i386_kernel_smpboot --]
[-- Type: text/plain, Size: 832 bytes --]
From: Nishanth Aravamudan <nacc@us.ibm.com>
From: Nishanth Aravamudan <nacc@us.ibm.com>
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>
Signed-off-by: Domen Puncer <domen@coderock.org>
---
smpboot.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
Index: quilt/arch/i386/kernel/smpboot.c
===================================================================
--- quilt.orig/arch/i386/kernel/smpboot.c
+++ quilt/arch/i386/kernel/smpboot.c
@@ -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);
}
--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-07-14 22:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-14 21:44 [patch 5/5] i386/smpboot: use msleep() instead of schedule_timeout() domen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®