summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-06-19 11:15:46 +0800
committerJiri Kosina <jkosina@suse.cz>2013-06-19 23:34:50 +0200
commitae58403f15888dad8b90c9b36e4354bc2f6cacde (patch)
treeb3a08a2bdb318c7e3e2cb9ee428e162486ce75c3 /include
parent278cee0515a3b3abb0d4e614d969b5be35c2c288 (diff)
downloadlinux-stable-ae58403f15888dad8b90c9b36e4354bc2f6cacde.tar.gz
linux-stable-ae58403f15888dad8b90c9b36e4354bc2f6cacde.tar.bz2
linux-stable-ae58403f15888dad8b90c9b36e4354bc2f6cacde.zip
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')
-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)
{