diff options
author | David Vrabel <david.vrabel@citrix.com> | 2013-10-14 10:15:49 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-10-14 10:15:49 +0200 |
commit | fbbd5009e6ed1201731b1727762070c1a988e67d (patch) | |
tree | 381a98fa04cc3a6625df6030b60bde4c4e701145 /xen/common/schedule.c | |
parent | 17ae93b12ddf22f2d794260a3dc2947858c625a0 (diff) | |
download | xen-fbbd5009e6ed1201731b1727762070c1a988e67d.tar.gz xen-fbbd5009e6ed1201731b1727762070c1a988e67d.tar.bz2 xen-fbbd5009e6ed1201731b1727762070c1a988e67d.zip |
evtchn: refactor low-level event channel port ops
Use functions for the low-level event channel port operations
(set/clear pending, unmask, is_pending and is_masked).
Group these functions into a struct evtchn_port_op so they can be
replaced by alternate implementations (for different ABIs) on a
per-domain basis.
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/schedule.c')
-rw-r--r-- | xen/common/schedule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/common/schedule.c b/xen/common/schedule.c index af3abc2f16..b8e4cb4417 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -34,6 +34,7 @@ #include <xen/multicall.h> #include <xen/cpu.h> #include <xen/preempt.h> +#include <xen/event.h> #include <public/sched.h> #include <xsm/xsm.h> @@ -759,7 +760,7 @@ static long do_poll(struct sched_poll *sched_poll) goto out; rc = 0; - if ( test_bit(port, &shared_info(d, evtchn_pending)) ) + if ( evtchn_port_is_pending(d, evtchn_from_port(d, port)) ) goto out; } |