[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XenPPC] [xenppc-unstable] [ppc] make local_event_delivery_is_enabled() return only 1 or 0
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |