locking: mutex: Fix brackets in comments
PATCH 1/1 locking: mutex: Fix brackets in comments
Remove needless '(' from sentence and add missing ')' to example code
Add whitespace to "CPU 1 CPU2"
-> "CPU 1 CPU 2"
Signed-off-by Manuel Ebner <[email protected]>
--- kernel/locking/mutex.c | 2 +- kernel/locking/rtmutex.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
kernel/locking/mutex.c +1 -1
@@ -11,7 +11,7 @@* Many thanks to Arjan van de Ven, Thomas Gleixner, Steven Rostedt and * David Howells for suggestions and improvements. * -* - Adaptive spinning for mutexes by Peter Zijlstra. (Ported to mainline +* - Adaptive spinning for mutexes by Peter Zijlstra. Ported to mainline * from the -rt tree, where it was originally implemented for rtmutexes * by Steven Rostedt, based on work by Gregory Haskins, Peter Morreale * and Sven Dietrich.
kernel/locking/rtmutex.c +3 -3
@@ -143,7 +143,7 @@ fixup_rt_mutex_waiters(struct rt_mutex_base *lock, bool acquire_lock)* lock->owner still has the waiters bit set, otherwise the * following can happen: * -* CPU 0 CPU 1 CPU2 +* CPU 0 CPU 1 CPU 2 * l->owner=T1 * rt_mutex_lock(l) * lock(l->lock)
@@ -172,14 +172,14 @@ fixup_rt_mutex_waiters(struct rt_mutex_base *lock, bool acquire_lock)* unlock(l->lock) * lock(l->lock) * fixup_rt_mutex_waiters() -* if (wait_list_empty(l) { +* if (wait_list_empty(l)) { * l->owner = owner * owner = l->owner & ~HAS_WAITERS; * ==> l->owner = T1 * } * lock(l->lock) * rt_mutex_unlock(l) fixup_rt_mutex_waiters() -* if (wait_list_empty(l) { +* if (wait_list_empty(l)) { * owner = l->owner & ~HAS_WAITERS; * cmpxchg(l->owner, T1, NULL) * ===> Success (l->owner = NULL)
Signature · 1 line
2.54.0