Commit 457cc52d authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Ingo Molnar

x86: apic_32.c should use __cpuinit section

All callers are __init or __cpuinit so there is no need
to hold this code without CPU_HOTPLUG being set.
Signed-off-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: default avatarYinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 89c38c28
...@@ -383,7 +383,7 @@ static void lapic_timer_broadcast(cpumask_t mask) ...@@ -383,7 +383,7 @@ static void lapic_timer_broadcast(cpumask_t mask)
* Setup the local APIC timer for this CPU. Copy the initilized values * Setup the local APIC timer for this CPU. Copy the initilized values
* of the boot CPU and register the clock event in the framework. * of the boot CPU and register the clock event in the framework.
*/ */
static void __devinit setup_APIC_timer(void) static void __cpuinit setup_APIC_timer(void)
{ {
struct clock_event_device *levt = &__get_cpu_var(lapic_events); struct clock_event_device *levt = &__get_cpu_var(lapic_events);
...@@ -652,7 +652,7 @@ void __init setup_boot_APIC_clock(void) ...@@ -652,7 +652,7 @@ void __init setup_boot_APIC_clock(void)
setup_APIC_timer(); setup_APIC_timer();
} }
void __devinit setup_secondary_APIC_clock(void) void __cpuinit setup_secondary_APIC_clock(void)
{ {
setup_APIC_timer(); setup_APIC_timer();
} }
...@@ -1713,7 +1713,7 @@ static struct sys_device device_lapic = { ...@@ -1713,7 +1713,7 @@ static struct sys_device device_lapic = {
.cls = &lapic_sysclass, .cls = &lapic_sysclass,
}; };
static void __devinit apic_pm_activate(void) static void __cpuinit apic_pm_activate(void)
{ {
apic_pm_state.active = 1; apic_pm_state.active = 1;
} }
......
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