Commit bba0e467 authored by Nigel Cunningham's avatar Nigel Cunningham Committed by Linus Torvalds

[PATCH] 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.

Signed-off by: Nigel Cunningham <nigel@suspend2.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9a14d4c8
...@@ -38,7 +38,7 @@ void disable_nonboot_cpus(void) ...@@ -38,7 +38,7 @@ void disable_nonboot_cpus(void)
} }
printk("Error taking cpu %d down: %d\n", cpu, error); 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) if (error)
panic("cpus not sleeping"); panic("cpus not sleeping");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment