aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/event.h
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-04-11 10:40:03 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-04-11 10:40:03 +0100
commit89bbff5329afc3b05ccc14ef3cf733f35d8ea4d3 (patch)
tree455dd11cd1d752ca27e018cf8dad131e74f4a198 /xen/include/xen/event.h
parent5c0356ec6f4a9897bfcc9fb08418ff82e61f1cf6 (diff)
downloadxen-89bbff5329afc3b05ccc14ef3cf733f35d8ea4d3.tar.gz
xen-89bbff5329afc3b05ccc14ef3cf733f35d8ea4d3.tar.bz2
xen-89bbff5329afc3b05ccc14ef3cf733f35d8ea4d3.zip
Make event_pending() architecture-specific.
PowerPC needs this because the domain can directly modify the hardware's "interrupts enabled" bit, and we don't want to patch Linux to replace all those accesses to use evtchn_upcall_mask instead. Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Diffstat (limited to 'xen/include/xen/event.h')
-rw-r--r--xen/include/xen/event.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/xen/include/xen/event.h b/xen/include/xen/event.h
index 13b2b5f9be..f7dee3b75d 100644
--- a/xen/include/xen/event.h
+++ b/xen/include/xen/event.h
@@ -38,11 +38,6 @@ extern void send_guest_global_virq(struct domain *d, int virq);
*/
extern void send_guest_pirq(struct domain *d, int pirq);
-/* Note: Bitwise operations result in fast code with no branches. */
-#define event_pending(v) \
- (!!(v)->vcpu_info->evtchn_upcall_pending & \
- !(v)->vcpu_info->evtchn_upcall_mask)
-
#define evtchn_pending(d, p) \
(test_bit((p), &(d)->shared_info->evtchn_pending[0]))