From: Glauber de Oliveira Costa <gcosta@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: akpm@linux-foundation.org, tglx@linutronix.de, mingo@elte.hu,
ak@suse.de, Glauber Costa <gcosta@redhat.com>
Subject: [PATCH] build fix for smp
Date: Wed, 19 Mar 2008 14:11:07 -0300 [thread overview]
Message-ID: <12059466674071-git-send-email-gcosta@redhat.com> (raw)
From: Glauber Costa <gcosta@redhat.com>
smp.c won't build when reboot.c is not compiled in,
due to the reboot_force dependency. It is always okay
for x86_64, but should be conditional on x86_32
Signed-off-by: Glauber Costa <gcosta@redhat.com>
---
arch/x86/kernel/smp.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/x86/kernel/smp.c b/arch/x86/kernel/smp.c
index 16c52aa..0ee8ad5 100644
--- a/arch/x86/kernel/smp.c
+++ b/arch/x86/kernel/smp.c
@@ -274,8 +274,10 @@ static void native_smp_send_stop(void)
int nolock;
unsigned long flags;
+#if defined(CONFIG_X86_64) || defined(CONFIG_X86_BIOS_REBOOT)
if (reboot_force)
return;
+#endif
/* Don't deadlock on the call lock in panic */
nolock = !spin_trylock(&call_lock);
--
1.5.0.6
next reply other threads:[~2008-03-19 19:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-19 17:11 Glauber de Oliveira Costa [this message]
2008-03-19 19:52 ` [PATCH] build fix for smp Ingo Molnar
2008-04-28 7:52 ` Sergio Luis
2008-04-28 8:50 ` Ingo Molnar
2008-04-28 9:01 ` Sergio Luis
2008-04-28 14:16 ` Glauber Costa
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=12059466674071-git-send-email-gcosta@redhat.com \
--to=gcosta@redhat.com \
--cc=ak@suse.de \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/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