login
Header Space

 
 

[PATCH] build fix for smp

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>
Cc: <akpm@...>, <tglx@...>, <mingo@...>, <ak@...>, Glauber Costa <gcosta@...>
Date: Wednesday, March 19, 2008 - 1:11 pm

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

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] build fix for smp, Glauber de Oliveira Costa..., (Wed Mar 19, 1:11 pm)
Re: [PATCH] build fix for smp, Ingo Molnar, (Wed Mar 19, 3:52 pm)
Re: [PATCH] build fix for smp, Sergio Luis, (Mon Apr 28, 3:52 am)
Re: [PATCH] build fix for smp, Glauber Costa, (Mon Apr 28, 10:16 am)
Re: [PATCH] build fix for smp, Ingo Molnar, (Mon Apr 28, 4:50 am)
Re: [PATCH] build fix for smp, Sergio Luis, (Mon Apr 28, 5:01 am)
speck-geostationary