* [PATCH] include/linux/spinlock_api_smp.h: beautify code, correct the related comments.
@ 2013-06-19 3:15 Chen Gang
0 siblings, 0 replies; only message in thread
From: Chen Gang @ 2013-06-19 3:15 UTC (permalink / raw)
To: 'Jiri Kosina'; +Cc: linux-kernel@vger.kernel.org
Correct the related comments for '#ifdef ... #endif'.
Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
include/linux/spinlock_api_smp.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/spinlock_api_smp.h b/include/linux/spinlock_api_smp.h
index 51df117..bdb9993 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)
{
--
1.7.7.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-19 3:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-19 3:15 [PATCH] include/linux/spinlock_api_smp.h: beautify code, correct the related comments Chen Gang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.