mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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:
1 parent
1dca74c331
commit
d639bdd9bb
1 file changed
+1
-1
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||