Blackfin: SMP: add missing arch_{read,write}_lock_flags helpers
authorGraf Yang <graf.yang@analog.com>
Mon, 21 Sep 2009 11:51:31 +0000 (11:51 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 10 Jan 2011 12:18:14 +0000 (07:18 -0500)
Common code expects these to be defined for SMP ports, so add them.

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/spinlock.h

index 47d5a0b1465acb2ba902085a1f346a2db7c6538a..1f286e71c21fb3fd3944b8656c2789b9fe5865b5 100644 (file)
@@ -67,6 +67,8 @@ static inline void arch_read_lock(arch_rwlock_t *rw)
        __raw_read_lock_asm(&rw->lock);
 }
 
+#define arch_read_lock_flags(lock, flags) arch_read_lock(lock)
+
 static inline int arch_read_trylock(arch_rwlock_t *rw)
 {
        return __raw_read_trylock_asm(&rw->lock);
@@ -82,6 +84,8 @@ static inline void arch_write_lock(arch_rwlock_t *rw)
        __raw_write_lock_asm(&rw->lock);
 }
 
+#define arch_write_lock_flags(lock, flags) arch_write_lock(lock)
+
 static inline int arch_write_trylock(arch_rwlock_t *rw)
 {
        return __raw_write_trylock_asm(&rw->lock);