linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arch/ppc/kernel/idle.c: don't declare cpu variable in non-SMP kernels
@ 2005-12-03 18:34 Otavio Salvador
  2005-12-03 18:46 ` Andrew Morton
  2005-12-03 19:00 ` Nathan Lynch
  0 siblings, 2 replies; 4+ messages in thread
From: Otavio Salvador @ 2005-12-03 18:34 UTC (permalink / raw)
  To: linuxppc-dev, akpm; +Cc: Otavio Salvador

Disable declaration of cpu variable in default_idle function when
building non-SMP kernels.

Signed-off-by: Otavio Salvador <otavio@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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-12-05  4:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-03 18:34 [PATCH] arch/ppc/kernel/idle.c: don't declare cpu variable in non-SMP kernels Otavio Salvador
2005-12-03 18:46 ` Andrew Morton
2005-12-05  4:12   ` Paul Mackerras
2005-12-03 19:00 ` Nathan Lynch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).