diff options
-rw-r--r-- | include/linux/rwsem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/rwsem.h b/include/linux/rwsem.h index 3e108f154cb6..8d79708146aa 100644 --- a/include/linux/rwsem.h +++ b/include/linux/rwsem.h | |||
@@ -64,7 +64,7 @@ static inline int rwsem_is_locked(struct rw_semaphore *sem) | |||
64 | # define __RWSEM_DEP_MAP_INIT(lockname) | 64 | # define __RWSEM_DEP_MAP_INIT(lockname) |
65 | #endif | 65 | #endif |
66 | 66 | ||
67 | #ifdef CONFIG_SMP | 67 | #if defined(CONFIG_SMP) && !defined(CONFIG_RWSEM_GENERIC_SPINLOCK) |
68 | #define __RWSEM_INITIALIZER(name) \ | 68 | #define __RWSEM_INITIALIZER(name) \ |
69 | { RWSEM_UNLOCKED_VALUE, \ | 69 | { RWSEM_UNLOCKED_VALUE, \ |
70 | __RAW_SPIN_LOCK_UNLOCKED(name.wait_lock), \ | 70 | __RAW_SPIN_LOCK_UNLOCKED(name.wait_lock), \ |