lkml.org 
[lkml]   [2008]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 28 of 31] xen: make sure retriggered events are set pending
    Date
    From
    retrigger_dynirq() was incomplete, and didn't properly set the event
    to be pending again. It doesn't seem to actually get used.

    Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
    ---
    arch/x86/xen/events.c | 8 +++++++-
    1 file changed, 7 insertions(+), 1 deletion(-)

    diff --git a/arch/x86/xen/events.c b/arch/x86/xen/events.c
    --- a/arch/x86/xen/events.c
    +++ b/arch/x86/xen/events.c
    @@ -601,10 +601,16 @@
    static int retrigger_dynirq(unsigned int irq)
    {
    int evtchn = evtchn_from_irq(irq);
    + struct shared_info *sh = HYPERVISOR_shared_info;
    int ret = 0;

    if (VALID_EVTCHN(evtchn)) {
    - set_evtchn(evtchn);
    + int masked;
    +
    + masked = sync_test_and_set_bit(evtchn, sh->evtchn_mask);
    + sync_set_bit(evtchn, sh->evtchn_pending);
    + if (!masked)
    + unmask_evtchn(evtchn);
    ret = 1;
    }




    \
     
     \ /
      Last update: 2008-03-18 06:29    [W:0.020 / U:37.036 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site