xen/events: replace raw bit ops with functions
authorWei Liu <wei.liu2@citrix.com>
Thu, 7 Mar 2013 15:50:28 +0000 (15:50 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 6 Jan 2014 15:07:36 +0000 (10:07 -0500)
In preparation for adding event channel port ops, use set_evtchn()
instead of sync_set_bit().

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/events.c

index 359e983d97e40fe5c21cce45c96f7d021e27aaf7..fec5da4ff3a0fc2f87e87f59ae616c36851dcf2a 100644 (file)
@@ -1548,13 +1548,12 @@ static int set_affinity_irq(struct irq_data *data, const struct cpumask *dest,
 static int retrigger_evtchn(int evtchn)
 {
        int masked;
-       struct shared_info *s = HYPERVISOR_shared_info;
 
        if (!VALID_EVTCHN(evtchn))
                return 0;
 
        masked = test_and_set_mask(evtchn);
-       sync_set_bit(evtchn, BM(s->evtchn_pending));
+       set_evtchn(evtchn);
        if (!masked)
                unmask_evtchn(evtchn);