Skip to content

Commit

Permalink
xen/events: replace raw bit ops with functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Liu authored and Konrad Rzeszutek Wilk committed Jan 6, 2014
1 parent 3f70fa8 commit 76ec8d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/xen/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 76ec8d6

Please sign in to comment.