mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
x86, apic: Mask IO-APIC and PIC unconditionally on LAPIC resume
IO-APIC and PIC use the same resume routines when IRQ remapping is enabled or disabled. So it should be safe to mask the other APICs for the IRQ-remapping-disabled case too. Signed-off-by: Joerg Roedel <joro@8bytes.org> Acked-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
This commit is contained in:
parent
70733e0c7e
commit
336224ba5e
1 changed files with 9 additions and 10 deletions
|
@ -2266,16 +2266,15 @@ static void lapic_resume(void)
|
|||
return;
|
||||
|
||||
local_irq_save(flags);
|
||||
if (irq_remapping_enabled) {
|
||||
/*
|
||||
* IO-APIC and PIC have their own resume routines.
|
||||
* We just mask them here to make sure the interrupt
|
||||
* subsystem is completely quiet while we enable x2apic
|
||||
* and interrupt-remapping.
|
||||
*/
|
||||
mask_ioapic_entries();
|
||||
legacy_pic->mask_all();
|
||||
}
|
||||
|
||||
/*
|
||||
* IO-APIC and PIC have their own resume routines.
|
||||
* We just mask them here to make sure the interrupt
|
||||
* subsystem is completely quiet while we enable x2apic
|
||||
* and interrupt-remapping.
|
||||
*/
|
||||
mask_ioapic_entries();
|
||||
legacy_pic->mask_all();
|
||||
|
||||
if (x2apic_mode)
|
||||
enable_x2apic();
|
||||
|
|
Loading…
Reference in a new issue