Skip to contentSkip to conversation

include/linux/spinlock_api_smp.h: beautify code, correct the related comments.

PATCH New Chen Gang 1 participant 1 message Jun 19, 2013 Locking primitives

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 include/linux/spinlock_api_smp.h: beautify code, correct the related comments.

Correct the related comments for '#ifdef ... #endif'.

---
 include/linux/spinlock_api_smp.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/spinlock_api_smp.h +1 -1
index 51df117..bdb9993 100644
@@ -144,7 +144,7 @@ static inline void __raw_spin_lock(raw_spinlock_t *lock)
 	LOCK_CONTENDED(lock, do_raw_spin_trylock, do_raw_spin_lock);
 }
 
-#endif /* CONFIG_PREEMPT */
+#endif /* !CONFIG_GENERIC_LOCKBREAK || CONFIG_DEBUG_LOCK_ALLOC */
 
 static inline void __raw_spin_unlock(raw_spinlock_t *lock)
 {
Signature · 1 line
1.7.7.6