diff options
author | Li Shaohua <shaohua.li@intel.com> | 2005-06-25 17:54:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 19:24:30 -0400 |
commit | 0bb3184df537002a742bafddf3f4fb482b7fe610 (patch) | |
tree | 97fb252be7efd6d111edbb9c2efb3bb04442c0ec /arch/i386/kernel/apic.c | |
parent | d720803a9365d360b3e5ea02033f0c11b5b1226a (diff) |
[PATCH] init call cleanup
Trival patch for CPU hotplug. In CPU identify part, only did cleaup for intel
CPUs. Need do for other CPUs if they support S3 SMP.
Signed-off-by: Li Shaohua<shaohua.li@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/kernel/apic.c')
-rw-r--r-- | arch/i386/kernel/apic.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/i386/kernel/apic.c b/arch/i386/kernel/apic.c index a28a088f3e75..b905d7bb9a0d 100644 --- a/arch/i386/kernel/apic.c +++ b/arch/i386/kernel/apic.c | |||
@@ -364,7 +364,7 @@ void __init init_bsp_APIC(void) | |||
364 | apic_write_around(APIC_LVT1, value); | 364 | apic_write_around(APIC_LVT1, value); |
365 | } | 365 | } |
366 | 366 | ||
367 | void __init setup_local_APIC (void) | 367 | void __devinit setup_local_APIC(void) |
368 | { | 368 | { |
369 | unsigned long oldvalue, value, ver, maxlvt; | 369 | unsigned long oldvalue, value, ver, maxlvt; |
370 | 370 | ||
@@ -635,7 +635,7 @@ static struct sys_device device_lapic = { | |||
635 | .cls = &lapic_sysclass, | 635 | .cls = &lapic_sysclass, |
636 | }; | 636 | }; |
637 | 637 | ||
638 | static void __init apic_pm_activate(void) | 638 | static void __devinit apic_pm_activate(void) |
639 | { | 639 | { |
640 | apic_pm_state.active = 1; | 640 | apic_pm_state.active = 1; |
641 | } | 641 | } |
@@ -856,7 +856,7 @@ fake_ioapic_page: | |||
856 | * but we do not accept timer interrupts yet. We only allow the BP | 856 | * but we do not accept timer interrupts yet. We only allow the BP |
857 | * to calibrate. | 857 | * to calibrate. |
858 | */ | 858 | */ |
859 | static unsigned int __init get_8254_timer_count(void) | 859 | static unsigned int __devinit get_8254_timer_count(void) |
860 | { | 860 | { |
861 | extern spinlock_t i8253_lock; | 861 | extern spinlock_t i8253_lock; |
862 | unsigned long flags; | 862 | unsigned long flags; |
@@ -875,7 +875,7 @@ static unsigned int __init get_8254_timer_count(void) | |||
875 | } | 875 | } |
876 | 876 | ||
877 | /* next tick in 8254 can be caught by catching timer wraparound */ | 877 | /* next tick in 8254 can be caught by catching timer wraparound */ |
878 | static void __init wait_8254_wraparound(void) | 878 | static void __devinit wait_8254_wraparound(void) |
879 | { | 879 | { |
880 | unsigned int curr_count, prev_count; | 880 | unsigned int curr_count, prev_count; |
881 | 881 | ||
@@ -895,7 +895,7 @@ static void __init wait_8254_wraparound(void) | |||
895 | * Default initialization for 8254 timers. If we use other timers like HPET, | 895 | * Default initialization for 8254 timers. If we use other timers like HPET, |
896 | * we override this later | 896 | * we override this later |
897 | */ | 897 | */ |
898 | void (*wait_timer_tick)(void) __initdata = wait_8254_wraparound; | 898 | void (*wait_timer_tick)(void) __devinitdata = wait_8254_wraparound; |
899 | 899 | ||
900 | /* | 900 | /* |
901 | * This function sets up the local APIC timer, with a timeout of | 901 | * This function sets up the local APIC timer, with a timeout of |
@@ -931,7 +931,7 @@ static void __setup_APIC_LVTT(unsigned int clocks) | |||
931 | apic_write_around(APIC_TMICT, clocks/APIC_DIVISOR); | 931 | apic_write_around(APIC_TMICT, clocks/APIC_DIVISOR); |
932 | } | 932 | } |
933 | 933 | ||
934 | static void __init setup_APIC_timer(unsigned int clocks) | 934 | static void __devinit setup_APIC_timer(unsigned int clocks) |
935 | { | 935 | { |
936 | unsigned long flags; | 936 | unsigned long flags; |
937 | 937 | ||
@@ -1044,7 +1044,7 @@ void __init setup_boot_APIC_clock(void) | |||
1044 | local_irq_enable(); | 1044 | local_irq_enable(); |
1045 | } | 1045 | } |
1046 | 1046 | ||
1047 | void __init setup_secondary_APIC_clock(void) | 1047 | void __devinit setup_secondary_APIC_clock(void) |
1048 | { | 1048 | { |
1049 | setup_APIC_timer(calibration_result); | 1049 | setup_APIC_timer(calibration_result); |
1050 | } | 1050 | } |