git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
include
/
asm-arm
/
spinlock.h
diff --git
a/include/asm-arm/spinlock.h
b/include/asm-arm/spinlock.h
index
406ca97
..
43ad4e5
100644
(file)
--- a/
include/asm-arm/spinlock.h
+++ b/
include/asm-arm/spinlock.h
@@
-142,9
+142,6
@@
static inline void __raw_write_unlock(raw_rwlock_t *rw)
: "cc");
}
: "cc");
}
-/* write_can_lock - would write_trylock() succeed? */
-#define __raw_write_can_lock(x) ((x)->lock == 0x80000000)
-
/*
* Read locks are a bit more hairy:
* - Exclusively load the lock value.
/*
* Read locks are a bit more hairy:
* - Exclusively load the lock value.
@@
-201,7
+198,4
@@
static inline void __raw_read_unlock(raw_rwlock_t *rw)
#define __raw_read_trylock(lock) generic__raw_read_trylock(lock)
#define __raw_read_trylock(lock) generic__raw_read_trylock(lock)
-/* read_can_lock - would read_trylock() succeed? */
-#define __raw_read_can_lock(x) ((x)->lock < 0x80000000)
-
#endif /* __ASM_SPINLOCK_H */
#endif /* __ASM_SPINLOCK_H */