Commit 8f818210 authored by Randy Dunlap's avatar Randy Dunlap Committed by Thomas Gleixner

x86: fix smp init sections

Fix Voyager section mismatch due to using __devinit instead of __cpuinit.

WARNING: vmlinux.o(.text+0xd943): Section mismatch: reference to .init.text:init_gdt (between 'voyager_smp_prepare_boot_cpu' and 'smp_vic_cmn_interrupt')
Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent e5ef67ef
...@@ -1900,7 +1900,7 @@ voyager_smp_prepare_cpus(unsigned int max_cpus) ...@@ -1900,7 +1900,7 @@ voyager_smp_prepare_cpus(unsigned int max_cpus)
smp_boot_cpus(); smp_boot_cpus();
} }
static void __devinit voyager_smp_prepare_boot_cpu(void) static void __cpuinit voyager_smp_prepare_boot_cpu(void)
{ {
init_gdt(smp_processor_id()); init_gdt(smp_processor_id());
switch_to_new_gdt(); switch_to_new_gdt();
...@@ -1911,7 +1911,7 @@ static void __devinit voyager_smp_prepare_boot_cpu(void) ...@@ -1911,7 +1911,7 @@ static void __devinit voyager_smp_prepare_boot_cpu(void)
cpu_set(smp_processor_id(), cpu_present_map); cpu_set(smp_processor_id(), cpu_present_map);
} }
static int __devinit static int __cpuinit
voyager_cpu_up(unsigned int cpu) voyager_cpu_up(unsigned int cpu)
{ {
/* This only works at boot for x86. See "rewrite" above. */ /* This only works at boot for x86. See "rewrite" above. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment