aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic_64.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-08-24 05:01:46 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-16 10:53:01 -0400
commitb3c5117050e8028d48b2fa0ea09c7a50dd7f3414 (patch)
tree3919939c185da0cd4b65836588133b2d8edf8f0b /arch/x86/kernel/apic_64.c
parent6460bc73aac970135104a0bc407c2c8b85394d59 (diff)
x86: apic_xx.c order variables
Signed-off-by: Yinghai Lu <yhlu.kernel@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.c48
1 files changed, 32 insertions, 16 deletions
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c
index 2e109119f647..c40a900e155b 100644
--- a/arch/x86/kernel/apic_64.c
+++ b/arch/x86/kernel/apic_64.c
@@ -53,16 +53,44 @@
53# error SPURIOUS_APIC_VECTOR definition error 53# error SPURIOUS_APIC_VECTOR definition error
54#endif 54#endif
55 55
56/* Disable local APIC timer from the kernel commandline or via dmi quirk */ 56#ifdef CONFIG_X86_32
57static int disable_apic_timer __cpuinitdata; 57/*
58 * Knob to control our willingness to enable the local APIC.
59 *
60 * +1=force-enable
61 */
62static int force_enable_local_apic;
63/*
64 * APIC command line parameters
65 */
66static int __init parse_lapic(char *arg)
67{
68 force_enable_local_apic = 1;
69 return 0;
70}
71early_param("lapic", parse_lapic);
72#endif
73
74#ifdef CONFIG_X86_64
58static int apic_calibrate_pmtmr __initdata; 75static int apic_calibrate_pmtmr __initdata;
59int disable_apic; 76static __init int setup_apicpmtimer(char *s)
77{
78 apic_calibrate_pmtmr = 1;
79 notsc_setup(NULL);
80 return 0;
81}
82__setup("apicpmtimer", setup_apicpmtimer);
83#endif
84
60int disable_x2apic; 85int disable_x2apic;
61int x2apic; 86int x2apic;
62
63/* x2apic enabled before OS handover */ 87/* x2apic enabled before OS handover */
64int x2apic_preenabled; 88int x2apic_preenabled;
65 89
90unsigned long mp_lapic_addr;
91int disable_apic;
92/* Disable local APIC timer from the kernel commandline or via dmi quirk */
93static int disable_apic_timer __cpuinitdata;
66/* Local APIC timer works in C2 */ 94/* Local APIC timer works in C2 */
67int local_apic_timer_c2_ok; 95int local_apic_timer_c2_ok;
68EXPORT_SYMBOL_GPL(local_apic_timer_c2_ok); 96EXPORT_SYMBOL_GPL(local_apic_timer_c2_ok);
@@ -113,8 +141,6 @@ static DEFINE_PER_CPU(struct clock_event_device, lapic_events);
113 141
114static unsigned long apic_phys; 142static unsigned long apic_phys;
115 143
116unsigned long mp_lapic_addr;
117
118/* 144/*
119 * Get the LAPIC version 145 * Get the LAPIC version
120 */ 146 */
@@ -1858,16 +1884,6 @@ static int __init parse_nolapic_timer(char *arg)
1858} 1884}
1859early_param("nolapic_timer", parse_nolapic_timer); 1885early_param("nolapic_timer", parse_nolapic_timer);
1860 1886
1861#ifdef CONFIG_X86_64
1862static __init int setup_apicpmtimer(char *s)
1863{
1864 apic_calibrate_pmtmr = 1;
1865 notsc_setup(NULL);
1866 return 0;
1867}
1868__setup("apicpmtimer", setup_apicpmtimer);
1869#endif
1870
1871static int __init apic_set_verbosity(char *arg) 1887static int __init apic_set_verbosity(char *arg)
1872{ 1888{
1873 if (!arg) { 1889 if (!arg) {