Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f791dd25 authored by Cheng Jian's avatar Cheng Jian Committed by Ingo Molnar
Browse files

locking/rwlocks: Fix comments



- fix the list of locking API headers in kernel/locking/spinlock.c
- fix an #endif comment

Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: huawei.libin@huawei.com
Cc: xiexiuqi@huawei.com
Link: http://lkml.kernel.org/r/1509706788-152547-1-git-send-email-cj.chengjian@huawei.com


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 8c5db92a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -211,7 +211,7 @@ static inline void __raw_write_lock(rwlock_t *lock)
	LOCK_CONTENDED(lock, do_raw_write_trylock, do_raw_write_lock);
}

#endif /* CONFIG_PREEMPT */
#endif /* !CONFIG_GENERIC_LOCKBREAK || CONFIG_DEBUG_LOCK_ALLOC */

static inline void __raw_write_unlock(rwlock_t *lock)
{
+2 −1
Original line number Diff line number Diff line
@@ -30,7 +30,8 @@
#if !defined(CONFIG_GENERIC_LOCKBREAK) || defined(CONFIG_DEBUG_LOCK_ALLOC)
/*
 * The __lock_function inlines are taken from
 * include/linux/spinlock_api_smp.h
 * spinlock : include/linux/spinlock_api_smp.h
 * rwlock   : include/linux/rwlock_api_smp.h
 */
#else