public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Address BUG: using smp_processor_id() in preemptible [00000001] code
@ 2005-07-22  3:59 Nigel Cunningham
  0 siblings, 0 replies; only message in thread
From: Nigel Cunningham @ 2005-07-22  3:59 UTC (permalink / raw)
  To: Linux Kernel Mailing List, Pavel Machek, Linux-pm mailing list

This patch fixes a warning in the disable_nonboot_cpus call in
kernel/power/smp.c.

Please apply.

Signed-off by: Nigel Cunningham <nigel@suspend2.net>

 smp.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
diff -ruNp 830-smp_processor_id_warning.patch-old/kernel/power/smp.c 830-smp_processor_id_warning.patch-new/kernel/power/smp.c
--- 830-smp_processor_id_warning.patch-old/kernel/power/smp.c	2005-07-18 06:37:08.000000000 +1000
+++ 830-smp_processor_id_warning.patch-new/kernel/power/smp.c	2005-07-22 11:09:16.000000000 +1000
@@ -38,7 +38,7 @@ void disable_nonboot_cpus(void)
 		}
 		printk("Error taking cpu %d down: %d\n", cpu, error);
 	}
-	BUG_ON(smp_processor_id() != 0);
+	BUG_ON(raw_smp_processor_id() != 0);
 	if (error)
 		panic("cpus not sleeping");
 }

-- 
Evolution.
Enumerate the requirements.
Consider the interdependencies.
Calculate the probabilities.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-22  4:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-22  3:59 [PATCH] Address BUG: using smp_processor_id() in preemptible [00000001] code Nigel Cunningham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox