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] [xenppc-unstable] [ppc] make local_event_delivery_is_enabled()

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [xenppc-unstable] [ppc] make local_event_delivery_is_enabled() return only 1 or 0
From: Xen patchbot-xenppc-unstable <patchbot-xenppc-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 13 Jun 2006 15:35:59 +0000
Delivery-date: Tue, 13 Jun 2006 08:45:31 -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>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Hollis Blanchard <hollisb@xxxxxxxxxx>
# Node ID c0c2944f31649ae98d57d80d7f7df8b5c2fbf19e
# Parent  43058739a5d32f9048d2305c2f1cd0506597da30
[ppc] make local_event_delivery_is_enabled() return only 1 or 0
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
---
 xen/include/asm-ppc/event.h |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff -r 43058739a5d3 -r c0c2944f3164 xen/include/asm-ppc/event.h
--- a/xen/include/asm-ppc/event.h       Mon Jun 12 14:20:14 2006 -0500
+++ b/xen/include/asm-ppc/event.h       Tue Jun 13 10:35:59 2006 -0500
@@ -24,17 +24,9 @@ static inline void evtchn_notify(struct 
 #endif
 }
 
-static inline int local_events_need_delivery(void)
-{
-    struct vcpu *v = current;
-    /* Note: Bitwise operations result in fast code with no branches. */
-    return (!!v->vcpu_info->evtchn_upcall_pending &
-            !!(vcpu_regs(v)->msr & MSR_EE));
-}
-
 static inline int local_event_delivery_is_enabled(void)
 {
-    return vcpu_regs(current)->msr & MSR_EE;
+    return !!(vcpu_regs(current)->msr & MSR_EE);
 }
 
 static inline void local_event_delivery_disable(void)
@@ -47,6 +39,14 @@ static inline void local_event_delivery_
     vcpu_regs(current)->msr |= MSR_EE;
 }
 
+static inline int local_events_need_delivery(void)
+{
+    struct vcpu *v = current;
+    /* Note: Bitwise operations result in fast code with no branches. */
+    return (!!v->vcpu_info->evtchn_upcall_pending &
+            local_event_delivery_is_enabled());
+}
+
 /* No arch specific virq definition now. Default to global. */
 static inline int arch_virq_is_global(int virq)
 {

_______________________________________________
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] [xenppc-unstable] [ppc] make local_event_delivery_is_enabled() return only 1 or 0, Xen patchbot-xenppc-unstable <=