* [patch 1/2] kernel/smp: replace schedule_timeout() with ssleep()
@ 2005-06-20 21:57 domen
0 siblings, 0 replies; only message in thread
From: domen @ 2005-06-20 21:57 UTC (permalink / raw)
To: pavel; +Cc: linux-kernel, Nishanth Aravamudan, Pavel Machek, domen
[-- Attachment #1: ssleep-kernel_power_smp.patch --]
[-- Type: text/plain, Size: 1103 bytes --]
From: Nishanth Aravamudan <nacc@us.ibm.com>
Use ssleep() instead of schedule_timeout(). The original code uses
TASK_INTERRUPTIBLE, but does not check for signals, so I believe the change to
ssleep() is appropriate.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Domen Puncer <domen@coderock.org>
---
smp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: quilt/kernel/power/smp.c
===================================================================
--- quilt.orig/kernel/power/smp.c
+++ quilt/kernel/power/smp.c
@@ -13,6 +13,7 @@
#include <linux/interrupt.h>
#include <linux/suspend.h>
#include <linux/module.h>
+#include <linux/delay.h>
#include <asm/atomic.h>
#include <asm/tlbflush.h>
@@ -49,8 +50,7 @@ void disable_nonboot_cpus(void)
oldmask = current->cpus_allowed;
set_cpus_allowed(current, cpumask_of_cpu(0));
printk("Freezing CPUs (at %d)", _smp_processor_id());
- current->state = TASK_INTERRUPTIBLE;
- schedule_timeout(HZ);
+ ssleep(1);
printk("...");
BUG_ON(_smp_processor_id() != 0);
--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-06-21 5:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-20 21:57 [patch 1/2] kernel/smp: replace schedule_timeout() with ssleep() domen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox