[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XenPPC] [xenppc-unstable] [XEN][POWERPC] forgot spinlock initialzer for recursive locks
# HG changeset patch # User Jimi Xenidis <jimix@xxxxxxxxxxxxxx> # Node ID 927f25df51542261c05c31dad5505f6c16315af4 # Parent bb5491a55606b88c86f380aae406f7077c3118bc [XEN][POWERPC] forgot spinlock initialzer for recursive locks Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx> --- xen/include/asm-powerpc/spinlock.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -r bb5491a55606 -r 927f25df5154 xen/include/asm-powerpc/spinlock.h --- a/xen/include/asm-powerpc/spinlock.h Tue Nov 28 19:01:46 2006 -0500 +++ b/xen/include/asm-powerpc/spinlock.h Thu Nov 30 16:21:22 2006 -0500 @@ -72,13 +72,13 @@ cas_u32(volatile u32 *ptr, u32 oval, u32 typedef struct { volatile u32 lock; - u16 recurse_cpu; + s16 recurse_cpu; u16 recurse_cnt; } spinlock_t; #define __UNLOCKED (0U) #define __LOCKED (~__UNLOCKED) -#define SPIN_LOCK_UNLOCKED /*(spinlock_t)*/ { __UNLOCKED } +#define SPIN_LOCK_UNLOCKED /*(spinlock_t)*/ { __UNLOCKED, -1, 0 } static inline void spin_lock_init(spinlock_t *lock) { *lock = (spinlock_t) SPIN_LOCK_UNLOCKED; _______________________________________________ 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 |