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.c46
1 files changed, 24 insertions, 22 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c
index 913d9924b101..a54512bea629 100644
--- a/arch/x86/kernel/apic_32.c
+++ b/arch/x86/kernel/apic_32.c
@@ -50,16 +50,37 @@
50# error SPURIOUS_APIC_VECTOR definition error 50# error SPURIOUS_APIC_VECTOR definition error
51#endif 51#endif
52 52
53unsigned long mp_lapic_addr; 53#ifdef CONFIG_X86_32
54
55/* 54/*
56 * Knob to control our willingness to enable the local APIC. 55 * Knob to control our willingness to enable the local APIC.
57 * 56 *
58 * +1=force-enable 57 * +1=force-enable
59 */ 58 */
60static int force_enable_local_apic; 59static int force_enable_local_apic;
61int disable_apic; 60/*
61 * APIC command line parameters
62 */
63static int __init parse_lapic(char *arg)
64{
65 force_enable_local_apic = 1;
66 return 0;
67}
68early_param("lapic", parse_lapic);
69#endif
62 70
71#ifdef CONFIG_X86_64
72static int apic_calibrate_pmtmr __initdata;
73static __init int setup_apicpmtimer(char *s)
74{
75 apic_calibrate_pmtmr = 1;
76 notsc_setup(NULL);
77 return 0;
78}
79__setup("apicpmtimer", setup_apicpmtimer);
80#endif
81
82unsigned long mp_lapic_addr;
83int disable_apic;
63/* Disable local APIC timer from the kernel commandline or via dmi quirk */ 84/* Disable local APIC timer from the kernel commandline or via dmi quirk */
64static int disable_apic_timer __cpuinitdata; 85static int disable_apic_timer __cpuinitdata;
65/* Local APIC timer works in C2 */ 86/* Local APIC timer works in C2 */
@@ -1742,15 +1763,6 @@ static void apic_pm_activate(void) { }
1742 1763
1743#endif /* CONFIG_PM */ 1764#endif /* CONFIG_PM */
1744 1765
1745/*
1746 * APIC command line parameters
1747 */
1748static int __init parse_lapic(char *arg)
1749{
1750 force_enable_local_apic = 1;
1751 return 0;
1752}
1753early_param("lapic", parse_lapic);
1754 1766
1755static int __init setup_disableapic(char *arg) 1767static int __init setup_disableapic(char *arg)
1756{ 1768{
@@ -1788,16 +1800,6 @@ static int __init parse_nolapic_timer(char *arg)
1788} 1800}
1789early_param("nolapic_timer", parse_nolapic_timer); 1801early_param("nolapic_timer", parse_nolapic_timer);
1790 1802
1791#ifdef CONFIG_X86_64
1792static __init int setup_apicpmtimer(char *s)
1793{
1794 apic_calibrate_pmtmr = 1;
1795 notsc_setup(NULL);
1796 return 0;
1797}
1798__setup("apicpmtimer", setup_apicpmtimer);
1799#endif
1800
1801static int __init apic_set_verbosity(char *arg) 1803static int __init apic_set_verbosity(char *arg)
1802{ 1804{
1803 if (!arg) { 1805 if (!arg) {