[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: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Nigel Cunningham 2005-07-27 11:43:41 -07:00 committed by Linus Torvalds
parent 9a14d4c898
commit bba0e4670a
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}