summaryrefslogtreecommitdiff
path: root/include/linux/spinlock_api_smp.h
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-06-19 07:15:46 +0400
committerJiri Kosina <jkosina@suse.cz>2013-06-20 01:34:50 +0400
commitae58403f15888dad8b90c9b36e4354bc2f6cacde (patch)
treeb3a08a2bdb318c7e3e2cb9ee428e162486ce75c3 /include/linux/spinlock_api_smp.h
parent278cee0515a3b3abb0d4e614d969b5be35c2c288 (diff)
downloadlinux-ae58403f15888dad8b90c9b36e4354bc2f6cacde.tar.xz
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>
Diffstat (limited to 'include/linux/spinlock_api_smp.h')
-rw-r--r--include/linux/spinlock_api_smp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/spinlock_api_smp.h b/include/linux/spinlock_api_smp.h
index 51df117abe46..bdb9993f0fda 100644
--- a/include/linux/spinlock_api_smp.h
+++ b/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)
{