ia64/xen-unstable

changeset 19659:411ecf6d1f19

[IA64] add ia64 _raw_rw_is_write_locked

This patch fixes the following link error.

xen/common/built_in.o: In function `_rw_is_write_locked':
xen/common/spinlock.c:249: undefined reference to
`_raw_rw_is_write_locked'
make[3]: *** [xen/xen-syms] Error 1

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Keir Fraser <keir.fraser@citrix.com>
date Wed May 27 12:00:32 2009 +0100 (2009-05-27)
parents 28a197617286
children 649226acc47e
files xen/include/asm-ia64/linux-xen/asm/spinlock.h
line diff
     1.1 --- a/xen/include/asm-ia64/linux-xen/asm/spinlock.h	Wed May 27 11:29:38 2009 +0100
     1.2 +++ b/xen/include/asm-ia64/linux-xen/asm/spinlock.h	Wed May 27 12:00:32 2009 +0100
     1.3 @@ -112,5 +112,6 @@ do {										\
     1.4  })
     1.5  
     1.6  #define _raw_rw_is_locked(x) (*(int *)(x) != 0)
     1.7 +#define _raw_rw_is_write_locked(x) (test_bit(31, (x)))
     1.8  
     1.9  #endif /*  _ASM_IA64_SPINLOCK_H */