[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: Otavio Salvador <otavio@debian.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
fa57f9c2b8
commit
e13ac21981
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,6 @@
|
||||||
void default_idle(void)
|
void default_idle(void)
|
||||||
{
|
{
|
||||||
void (*powersave)(void);
|
void (*powersave)(void);
|
||||||
int cpu = smp_processor_id();
|
|
||||||
|
|
||||||
powersave = ppc_md.power_save;
|
powersave = ppc_md.power_save;
|
||||||
|
|
||||||
|
@ -47,7 +46,8 @@ void default_idle(void)
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
else {
|
else {
|
||||||
set_thread_flag(TIF_POLLING_NRFLAG);
|
set_thread_flag(TIF_POLLING_NRFLAG);
|
||||||
while (!need_resched() && !cpu_is_offline(cpu))
|
while (!need_resched() &&
|
||||||
|
!cpu_is_offline(smp_processor_id()))
|
||||||
barrier();
|
barrier();
|
||||||
clear_thread_flag(TIF_POLLING_NRFLAG);
|
clear_thread_flag(TIF_POLLING_NRFLAG);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue