aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/apic_32.c')
-rw-r--r--arch/x86/kernel/apic_32.c17
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 */
64static int local_apic_timer_verify_ok; 64static 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 */
66static int local_apic_timer_disabled; 66static int disable_apic_timer __cpuinitdata;
67/* Local APIC timer works in C2 */ 67/* Local APIC timer works in C2 */
68int local_apic_timer_c2_ok; 68int local_apic_timer_c2_ok;
69EXPORT_SYMBOL_GPL(local_apic_timer_c2_ok); 69EXPORT_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}
1700early_param("nolapic", parse_nolapic); 1700early_param("nolapic", parse_nolapic);
1701 1701
1702static int __init parse_disable_lapic_timer(char *arg) 1702static 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}
1707early_param("nolapic_timer", parse_disable_lapic_timer); 1707early_param("noapictimer", parse_disable_apic_timer);
1708
1709static int __init parse_nolapic_timer(char *arg)
1710{
1711 disable_apic_timer = 1;
1712 return 0;
1713}
1714early_param("nolapic_timer", parse_nolapic_timer);
1708 1715
1709static int __init parse_lapic_timer_c2_ok(char *arg) 1716static int __init parse_lapic_timer_c2_ok(char *arg)
1710{ 1717{