lkml.org 
[lkml]   [2012]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 14/19] x86, io-apic: Remove !irq_remapped() check from __target_IO_APIC_irq()
    Date
    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 <joerg.roedel@amd.com>
    ---
    arch/x86/kernel/apic/io_apic.c | 8 ++------
    1 file changed, 2 insertions(+), 6 deletions(-)

    diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
    index 6f2f21a..dd555e7 100644
    --- a/arch/x86/kernel/apic/io_apic.c
    +++ b/arch/x86/kernel/apic/io_apic.c
    @@ -2308,12 +2308,8 @@ static void __target_IO_APIC_irq(unsigned int irq, unsigned int dest, struct irq

    apic = entry->apic;
    pin = entry->pin;
    - /*
    - * With interrupt-remapping, destination information comes
    - * from interrupt-remapping table entry.
    - */
    - if (!irq_remapped(cfg))
    - io_apic_write(apic, 0x11 + pin*2, dest);
    +
    + io_apic_write(apic, 0x11 + pin*2, dest);
    reg = io_apic_read(apic, 0x10 + pin*2);
    reg &= ~IO_APIC_REDIR_VECTOR_MASK;
    reg |= vector;
    --
    1.7.9.5



    \
     
     \ /
      Last update: 2012-09-26 14:41    [W:3.947 / U:0.052 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site