spinlock_api_smp.h: fix preprocessor comments
authorChen Gang <gang.chen@asianux.com>
Wed, 19 Jun 2013 03:15:46 +0000 (11:15 +0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 19 Jun 2013 21:34:50 +0000 (23:34 +0200)
Correct the related comments for '#ifdef ... #endif'.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
include/linux/spinlock_api_smp.h

index 51df117abe46279223ed1f2a7cb911998aca5ecc..bdb9993f0fda648ee2dc58a59ff26372314a02de 100644 (file)
@@ -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)
 {