lkml.org 
[lkml]   [2012]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] xen: use the pirq number to check the pirq_eoi_map
    Date
    In pirq_check_eoi_map use the pirq number rather than the Linux irq
    number to check whether an eoi is needed in the pirq_eoi_map.

    Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
    Tested-by: Tobias Geiger <tobias.geiger@vido.info>
    ---
    drivers/xen/events.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/xen/events.c b/drivers/xen/events.c
    index 4b33acd..0a8a17c 100644
    --- a/drivers/xen/events.c
    +++ b/drivers/xen/events.c
    @@ -274,7 +274,7 @@ static unsigned int cpu_from_evtchn(unsigned int evtchn)

    static bool pirq_check_eoi_map(unsigned irq)
    {
    - return test_bit(irq, pirq_eoi_map);
    + return test_bit(pirq_from_irq(irq), pirq_eoi_map);
    }

    static bool pirq_needs_eoi_flag(unsigned irq)
    --
    1.7.2.5


    \
     
     \ /
      Last update: 2012-04-25 17:21    [W:2.512 / U:0.168 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site