diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-08-15 07:51:20 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-15 07:51:20 -0400 |
commit | 36fef0949c14445d231a68663e8a01860f7caca3 (patch) | |
tree | aced44fef8f87fdbcf2ed8dd57e4658473276edb /arch/x86/kernel/apic_64.c | |
parent | ed4e5ec177d20504c51aebb93db12d57716cde9c (diff) |
x86: apic - unify disable_apic_timer
Get rid of local_apic_timer_disabled and use disable_apic_timer instead.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic_64.c')
-rw-r--r-- | arch/x86/kernel/apic_64.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c index 77c5e5eb820e..1e925be861e4 100644 --- a/arch/x86/kernel/apic_64.c +++ b/arch/x86/kernel/apic_64.c | |||
@@ -45,6 +45,7 @@ | |||
45 | #include <mach_ipi.h> | 45 | #include <mach_ipi.h> |
46 | #include <mach_apic.h> | 46 | #include <mach_apic.h> |
47 | 47 | ||
48 | /* Disable local APIC timer from the kernel commandline or via dmi quirk */ | ||
48 | static int disable_apic_timer __cpuinitdata; | 49 | static int disable_apic_timer __cpuinitdata; |
49 | static int apic_calibrate_pmtmr __initdata; | 50 | static int apic_calibrate_pmtmr __initdata; |
50 | int disable_apic; | 51 | int disable_apic; |
@@ -1583,14 +1584,19 @@ static int __init parse_lapic_timer_c2_ok(char *arg) | |||
1583 | } | 1584 | } |
1584 | early_param("lapic_timer_c2_ok", parse_lapic_timer_c2_ok); | 1585 | early_param("lapic_timer_c2_ok", parse_lapic_timer_c2_ok); |
1585 | 1586 | ||
1586 | static __init int setup_noapictimer(char *str) | 1587 | static int __init parse_disable_apic_timer(char *arg) |
1587 | { | 1588 | { |
1588 | if (str[0] != ' ' && str[0] != 0) | ||
1589 | return 0; | ||
1590 | disable_apic_timer = 1; | 1589 | disable_apic_timer = 1; |
1591 | return 1; | 1590 | return 0; |
1591 | } | ||
1592 | early_param("noapictimer", parse_disable_apic_timer); | ||
1593 | |||
1594 | static int __init parse_nolapic_timer(char *arg) | ||
1595 | { | ||
1596 | disable_apic_timer = 1; | ||
1597 | return 0; | ||
1592 | } | 1598 | } |
1593 | __setup("noapictimer", setup_noapictimer); | 1599 | early_param("nolapic_timer", parse_nolapic_timer); |
1594 | 1600 | ||
1595 | static __init int setup_apicpmtimer(char *s) | 1601 | static __init int setup_apicpmtimer(char *s) |
1596 | { | 1602 | { |