From: domen@coderock.org
To: pavel@suse.cz
Cc: linux-kernel@vger.kernel.org,
Nishanth Aravamudan <nacc@us.ibm.com>,
Pavel Machek <pavel@ucw.cz>,
domen@coderock.org
Subject: [patch 1/2] kernel/smp: replace schedule_timeout() with ssleep()
Date: Mon, 20 Jun 2005 23:57:12 +0200 [thread overview]
Message-ID: <20050620215711.827061000@nd47.coderock.org> (raw)
[-- 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);
--
reply other threads:[~2005-06-21 5:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050620215711.827061000@nd47.coderock.org \
--to=domen@coderock.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nacc@us.ibm.com \
--cc=pavel@suse.cz \
--cc=pavel@ucw.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox