LKML Archive on
help / color / mirror / Atom feed
* [PATCH] Remove the last reference to rwlock_is_locked() macro.
@ 2007-01-16 11:04 Robert P. J. Day
  0 siblings, 0 replies; only message in thread
From: Robert P. J. Day @ 2007-01-16 11:04 UTC (permalink / raw)
  To: Linux kernel mailing list; +Cc: Ian Molton, Andrew Morton

  Remove the lone, remaining reference to the long-deceased
rwlock_is_locked() macro.

Signed-off-by: Robert P. J. Day <>


diff --git a/include/asm-arm/spinlock.h b/include/asm-arm/spinlock.h
index 861092f..800ba52 100644
--- a/include/asm-arm/spinlock.h
+++ b/include/asm-arm/spinlock.h
@@ -85,7 +85,6 @@ static inline void __raw_spin_unlock(raw_spinlock_t *lock)
  * Write locks are easy - we just set bit 31.  When unlocking, we can
  * just write zero since the lock is exclusively held.
-#define rwlock_is_locked(x)	(*((volatile unsigned int *)(x)) != 0)

 static inline void __raw_write_lock(raw_rwlock_t *rw)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-16 11:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-16 11:04 [PATCH] Remove the last reference to rwlock_is_locked() macro Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).