Commit 0fada656 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] acpi_smp_processor_id() warning fix

Suppress an "using smp_processor_id in preemptible code" warning.  The idle
thread isn't preemptible, so we can simply use _smp_processor_id().
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d6837efc
...@@ -162,7 +162,7 @@ static void acpi_processor_idle (void) ...@@ -162,7 +162,7 @@ static void acpi_processor_idle (void)
int sleep_ticks = 0; int sleep_ticks = 0;
u32 t1, t2 = 0; u32 t1, t2 = 0;
pr = processors[smp_processor_id()]; pr = processors[_smp_processor_id()];
if (!pr) if (!pr)
return; return;
......
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