[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XenPPC] [pushed] [ppc] define event_pending like everyone else



changeset:   9937:0ec7f0c51a17238796cc97b9df43f10dabfdf09d
user:        jimix@xxxxxxxxxxxxxxxxxxxxx
date:        Wed Apr 19 12:26:03 2006 -0400
files:       xen/include/asm-ppc/event.h
description:
[ppc] define event_pending like everyone else


diff -r d89919efc87898497c494040597a5eaf2b17433e -r 
0ec7f0c51a17238796cc97b9df43f10dabfdf09d xen/include/asm-ppc/event.h
--- a/xen/include/asm-ppc/event.h       Wed Apr 19 12:24:45 2006 -0400
+++ b/xen/include/asm-ppc/event.h       Wed Apr 19 12:26:03 2006 -0400
@@ -22,4 +22,8 @@ static inline void evtchn_notify(struct 
 #endif
 }
 
+/* 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)
 #endif



_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.