aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-11-18 11:32:26 -0500
committerIngo Molnar <mingo@elte.hu>2008-11-18 11:35:19 -0500
commitf632ddcc0786149c0e4bef9b6b44c96a75c0d074 (patch)
treeb4629732cfab5c91838cd4e872f2ccfe4a3e964a /arch/x86/kernel/setup.c
parent54ac14a8e982ae6c7ac71ee2b0d0173b974509e2 (diff)
x86: fix wakeup_cpu with numaq/es7000, v2, fix #2
Impact: fix boot crash fix default_update_genapic(). Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r--arch/x86/kernel/setup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index c366e891e10b..31328909456e 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -585,8 +585,10 @@ early_param("elfcorehdr", setup_elfcorehdr);
585 585
586static int __init default_update_genapic(void) 586static int __init default_update_genapic(void)
587{ 587{
588#if defined(CONFIG_X86_GENERICARCH) || defined(CONFIG_X86_64) 588#ifdef CONFIG_X86_SMP
589 genapic->wakeup_cpu = wakeup_secondary_cpu_via_nmi; 589# if defined(CONFIG_X86_GENERICARCH) || defined(CONFIG_X86_64)
590 genapic->wakeup_cpu = wakeup_secondary_cpu_via_init;
591# endif
590#endif 592#endif
591 593
592 return 0; 594 return 0;