WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

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

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [pushed] [ppc] define event_pending like everyone else
From: jimix@xxxxxxxxxxxxxx
Date: Wed, 19 Apr 2006 14:01:01 -0400
Delivery-date: Wed, 19 Apr 2006 11:00:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [pushed] [ppc] define event_pending like everyone else, jimix <=