diff options
Diffstat (limited to 'arch/x86/kernel/apic_32.c')
-rw-r--r-- | arch/x86/kernel/apic_32.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c index 12b154822bce..6af20dd12c96 100644 --- a/arch/x86/kernel/apic_32.c +++ b/arch/x86/kernel/apic_32.c | |||
@@ -63,7 +63,7 @@ int disable_apic; | |||
63 | /* Local APIC timer verification ok */ | 63 | /* Local APIC timer verification ok */ |
64 | static int local_apic_timer_verify_ok; | 64 | static int local_apic_timer_verify_ok; |
65 | /* Disable local APIC timer from the kernel commandline or via dmi quirk */ | 65 | /* Disable local APIC timer from the kernel commandline or via dmi quirk */ |
66 | static int local_apic_timer_disabled; | 66 | static int disable_apic_timer __cpuinitdata; |
67 | /* Local APIC timer works in C2 */ | 67 | /* Local APIC timer works in C2 */ |
68 | int local_apic_timer_c2_ok; | 68 | int local_apic_timer_c2_ok; |
69 | EXPORT_SYMBOL_GPL(local_apic_timer_c2_ok); | 69 | EXPORT_SYMBOL_GPL(local_apic_timer_c2_ok); |
@@ -574,7 +574,7 @@ void __init setup_boot_APIC_clock(void) | |||
574 | * timer as a dummy clock event source on SMP systems, so the | 574 | * timer as a dummy clock event source on SMP systems, so the |
575 | * broadcast mechanism is used. On UP systems simply ignore it. | 575 | * broadcast mechanism is used. On UP systems simply ignore it. |
576 | */ | 576 | */ |
577 | if (local_apic_timer_disabled) { | 577 | if (disable_apic_timer) { |
578 | /* No broadcast on UP ! */ | 578 | /* No broadcast on UP ! */ |
579 | if (num_possible_cpus() > 1) { | 579 | if (num_possible_cpus() > 1) { |
580 | lapic_clockevent.mult = 1; | 580 | lapic_clockevent.mult = 1; |
@@ -1699,12 +1699,19 @@ static int __init parse_nolapic(char *arg) | |||
1699 | } | 1699 | } |
1700 | early_param("nolapic", parse_nolapic); | 1700 | early_param("nolapic", parse_nolapic); |
1701 | 1701 | ||
1702 | static int __init parse_disable_lapic_timer(char *arg) | 1702 | static int __init parse_disable_apic_timer(char *arg) |
1703 | { | 1703 | { |
1704 | local_apic_timer_disabled = 1; | 1704 | disable_apic_timer = 1; |
1705 | return 0; | 1705 | return 0; |
1706 | } | 1706 | } |
1707 | early_param("nolapic_timer", parse_disable_lapic_timer); | 1707 | early_param("noapictimer", parse_disable_apic_timer); |
1708 | |||
1709 | static int __init parse_nolapic_timer(char *arg) | ||
1710 | { | ||
1711 | disable_apic_timer = 1; | ||
1712 | return 0; | ||
1713 | } | ||
1714 | early_param("nolapic_timer", parse_nolapic_timer); | ||
1708 | 1715 | ||
1709 | static int __init parse_lapic_timer_c2_ok(char *arg) | 1716 | static int __init parse_lapic_timer_c2_ok(char *arg) |
1710 | { | 1717 | { |