mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 08:09:56 +00:00
xen/events: replace raw bit ops with functions
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>
This commit is contained in:
parent
3f70fa8282
commit
76ec8d64ce
@ -1548,13 +1548,12 @@ static int set_affinity_irq(struct irq_data *data, const struct cpumask *dest,
|
|||||||
static int retrigger_evtchn(int evtchn)
|
static int retrigger_evtchn(int evtchn)
|
||||||
{
|
{
|
||||||
int masked;
|
int masked;
|
||||||
struct shared_info *s = HYPERVISOR_shared_info;
|
|
||||||
|
|
||||||
if (!VALID_EVTCHN(evtchn))
|
if (!VALID_EVTCHN(evtchn))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
masked = test_and_set_mask(evtchn);
|
masked = test_and_set_mask(evtchn);
|
||||||
sync_set_bit(evtchn, BM(s->evtchn_pending));
|
set_evtchn(evtchn);
|
||||||
if (!masked)
|
if (!masked)
|
||||||
unmask_evtchn(evtchn);
|
unmask_evtchn(evtchn);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user