x86/apic: Disable the LAPIC later in smp_send_stop()

__stop_this_cpu() may reset the LAPIC mode back from x2apic to xapic, but will
leave x2apic_enabled alone.  This may cause disconnect_bsp_APIC() in
disable_IO_APIC() to suffer a #GP fault.

Disabling the LAPIC can safely be deferred to being the last action.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Andrew Cooper authored and Jan Beulich committed 2015-06-03 09:25:43 +02:00
1 parent 1dca74c331
commit d639bdd9bb
1 file changed
+1 -1
+1 -1
View File
@@ -311,9 +311,9 @@ void smp_send_stop(void)
mdelay(1);
local_irq_disable();
__stop_this_cpu();
disable_IO_APIC();
hpet_disable();
__stop_this_cpu();
local_irq_enable();
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.