summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-28 17:50:18 +0100
committerIngo Molnar <mingo@elte.hu>2009-01-28 23:20:37 +0100
commit328386d7ab600aa0993a1226f5817ac30a735724 (patch)
tree884f3504d57f1a88c51768140abb91a1abb9bf05 /arch/x86/kernel/setup.c
parent1f75ed0c1311a50ed393bcac258de65680d360e5 (diff)
downloadop-kernel-dev-328386d7ab600aa0993a1226f5817ac30a735724.zip
op-kernel-dev-328386d7ab600aa0993a1226f5817ac30a735724.tar.gz
x86, smp: refactor ->wake_cpu
- remove macro wrappers Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r--arch/x86/kernel/setup.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index a58e9f5..6b27f6d 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -589,9 +589,8 @@ early_param("elfcorehdr", setup_elfcorehdr);
static int __init default_update_genapic(void)
{
#ifdef CONFIG_X86_SMP
-# if defined(CONFIG_X86_GENERICARCH) || defined(CONFIG_X86_64)
- apic->wakeup_cpu = wakeup_secondary_cpu_via_init;
-# endif
+ if (!apic->wakeup_cpu)
+ apic->wakeup_cpu = wakeup_secondary_cpu_via_init;
#endif
return 0;
OpenPOWER on IntegriCloud