Browse Source

spinlock_api_smp.h: fix preprocessor comments

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

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Chen Gang 12 years ago
parent
commit
ae58403f15
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/linux/spinlock_api_smp.h

+ 1 - 1
include/linux/spinlock_api_smp.h

@@ -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)
 {