[IA64] Fix spinlock initializer.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
This commit is contained in:
Alex Williamson committed 2007-11-07 09:47:40 -07:00
1 parent 2e53497808
commit a07e2229ff
1 file changed
+12
@@ -33,8 +33,20 @@ typedef struct {
#endif
} spinlock_t;
#ifdef XEN
#ifdef DEBUG_SPINLOCK
#define SPIN_LOCK_UNLOCKED /*(spinlock_t)*/ { 0, NULL, -1, 0 }
#else
#define SPIN_LOCK_UNLOCKED /*(spinlock_t)*/ { 0, -1, 0 }
#endif
static inline void spin_lock_init(spinlock_t *lock)
{
*lock = ((spinlock_t)SPIN_LOCK_UNLOCKED);
}
#else
#define SPIN_LOCK_UNLOCKED /*(spinlock_t)*/ { 0 }
#define spin_lock_init(x) ((x)->lock = 0)
#endif
#ifdef ASM_SUPPORTED
/*
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.