|
@@ -1480,7 +1480,7 @@ static bool nox2apic __initdata;
|
|
|
#ifdef CONFIG_X86_X2APIC
|
|
|
int x2apic_mode;
|
|
|
/* x2apic enabled before OS handover */
|
|
|
-int x2apic_preenabled;
|
|
|
+static int x2apic_preenabled;
|
|
|
static int x2apic_disabled;
|
|
|
static int __init setup_nox2apic(char *str)
|
|
|
{
|
|
@@ -1569,6 +1569,8 @@ void enable_x2apic(void)
|
|
|
wrmsrl(MSR_IA32_APICBASE, msr | X2APIC_ENABLE);
|
|
|
}
|
|
|
}
|
|
|
+#else
|
|
|
+#define x2apic_preenabled (0)
|
|
|
#endif /* CONFIG_X86_X2APIC */
|
|
|
|
|
|
static int __init try_to_enable_IR(void)
|