mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 20:53:53 +08:00
x86, io-apic: Remove !irq_remapped() check from __target_IO_APIC_irq()
This function is only called from default_ioapic_set_affinity() which is only used when interrupt remapping is disabled since the introduction of the set_affinity function pointer. So the check will always evaluate as true and can be removed. 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
9b1b0e42f5
commit
9f9d39e403
@ -2299,12 +2299,8 @@ static void __target_IO_APIC_irq(unsigned int irq, unsigned int dest, struct irq
|
|||||||
|
|
||||||
apic = entry->apic;
|
apic = entry->apic;
|
||||||
pin = entry->pin;
|
pin = entry->pin;
|
||||||
/*
|
|
||||||
* With interrupt-remapping, destination information comes
|
io_apic_write(apic, 0x11 + pin*2, dest);
|
||||||
* from interrupt-remapping table entry.
|
|
||||||
*/
|
|
||||||
if (!irq_remapped(cfg))
|
|
||||||
io_apic_write(apic, 0x11 + pin*2, dest);
|
|
||||||
reg = io_apic_read(apic, 0x10 + pin*2);
|
reg = io_apic_read(apic, 0x10 + pin*2);
|
||||||
reg &= ~IO_APIC_REDIR_VECTOR_MASK;
|
reg &= ~IO_APIC_REDIR_VECTOR_MASK;
|
||||||
reg |= vector;
|
reg |= vector;
|
||||||
|
Loading…
Reference in New Issue
Block a user