linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Otavio Salvador <otavio@debian.org>
To: linuxppc-dev@ozlabs.org,  akpm@osdl.org
Cc: Otavio Salvador <otavio@debian.org>
Subject: [PATCH] arch/ppc/kernel/idle.c: don't declare cpu variable in non-SMP kernels
Date: Sat, 3 Dec 2005 16:34:19 -0200	[thread overview]
Message-ID: <11336348593561-git-send-email-otavio@debian.org> (raw)
In-Reply-To: 

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

             reply	other threads:[~2005-12-03 18:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-03 18:34 Otavio Salvador [this message]
2005-12-03 18:46 ` [PATCH] arch/ppc/kernel/idle.c: don't declare cpu variable in non-SMP kernels Andrew Morton
2005-12-05  4:12   ` Paul Mackerras
2005-12-03 19:00 ` Nathan Lynch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11336348593561-git-send-email-otavio@debian.org \
    --to=otavio@debian.org \
    --cc=akpm@osdl.org \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).