[PATCH] arch/ppc/kernel/idle.c: don't declare cpu variable in non-SMP kernels
Otavio Salvador
otavio at debian.org
Sun Dec 4 05:34:19 EST 2005
Disable declaration of cpu variable in default_idle function when
building non-SMP kernels.
Signed-off-by: Otavio Salvador <otavio at debian.org>
---
arch/ppc/kernel/idle.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
applies-to: 06378a021f5873003a07f0388aa0cb6e81a32c19
156ff805b4408c6831c7840c1ed1fe3d148bc3c8
diff --git a/arch/ppc/kernel/idle.c b/arch/ppc/kernel/idle.c
index 821a75e..b23a979 100644
--- a/arch/ppc/kernel/idle.c
+++ b/arch/ppc/kernel/idle.c
@@ -37,7 +37,9 @@
void default_idle(void)
{
void (*powersave)(void);
+#ifdef CONFIG_SMP
int cpu = smp_processor_id();
+#endif
powersave = ppc_md.power_save;
---
0.99.9k
More information about the Linuxppc-dev
mailing list