Skip to contentSkip to conversation

Address BUG: using smp_processor_id() in preemptible [00000001] code

PATCH New Nigel Cunningham 1 participant 1 message Jul 22, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Address BUG: using smp_processor_id() in preemptible [00000001] code

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

Please apply.

Signed-off by: Nigel Cunningham <[email protected]>

 smp.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
kernel/power/smp.c +1 -1
diff -ruNp 830-smp_processor_id_warning.patch-old/kernel/power/smp.c 830-smp_processor_id_warning.patch-new/kernel/power/smp.c
@@ -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");
 }
Signature · 4 lines
Evolution.
Enumerate the requirements.
Consider the interdependencies.
Calculate the probabilities.