Commit e13ac219 authored by Otavio Salvador's avatar Otavio Salvador Committed by Linus Torvalds
Browse files

[PATCH] arch/ppc/kernel/idle.c: don't declare cpu variable in non-SMP kernels

Disable declaration of cpu variable in default_idle function when
building non-SMP kernels.
Signed-off-by: default avatarOtavio Salvador <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent fa57f9c2
......@@ -37,7 +37,6 @@
void default_idle(void)
void (*powersave)(void);
int cpu = smp_processor_id();
powersave = ppc_md.power_save;
......@@ -47,7 +46,8 @@ void default_idle(void)
else {
while (!need_resched() && !cpu_is_offline(cpu))
while (!need_resched() &&
Supports Markdown
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