x86 fix for 4.2
Linus,
please pull the latest x86-urgent-for-linus git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus
A single fix for a APIC regression introduced in 4.0 which went undetected until now. I screwed up the x2apic cleanup in a subtle way. The screwup is only visible on systems which have x2apic preenabled in the BIOS and need to disable it during boot.
Thanks,
tglx
------------------>
Thomas Gleixner (1):
x86/apic: Fix fallout from x2apic cleanup
arch/x86/kernel/apic/apic.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
arch/x86/kernel/apic/apic.c +7 -7
@@ -1424,7 +1424,7 @@ static inline void __x2apic_disable(void) {u64 msr; -if (cpu_has_apic) +if (!cpu_has_apic)return ;rdmsrl (MSR_IA32_APICBASE , msr);
@@ -1483,10 +1483,13 @@ void x2apic_setup(void)static __init void x2apic_disable (void ) { -u32 x2apic_id; +u32 x2apic_id, state = x2apic_state; -if (x2apic_state !=X2APIC_ON ) - goto out; + x2apic_mode =0 ; + x2apic_state =X2APIC_DISABLED ; + +if (state !=X2APIC_ON ) +return ; x2apic_id =read_apic_id ();if (x2apic_id >=255 )
@@ -1494,9 +1497,6 @@ static __init void x2apic_disable(void)__x2apic_disable ();register_lapic_address (mp_lapic_addr); -out: - x2apic_state =X2APIC_DISABLED ; - x2apic_mode =0 ; }static __init void x2apic_enable (void )