locking/ww_mutex: Add rt_mutex based lock type and accessors
authorPeter Zijlstra <peterz@infradead.org>
Sun, 15 Aug 2021 21:28:56 +0000 (23:28 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 17 Aug 2021 17:05:11 +0000 (19:05 +0200)
commit2408f7a3782a6bfa69a573f5408b3a9666db78ca
treead7ce6cd3107d7ddfd25131630ec5dfbf6ed3a30
parent8850d773703f8114d7c8a2421fd20bde8a558f96
locking/ww_mutex: Add rt_mutex based lock type and accessors

Provide the defines for RT mutex based ww_mutexes and fix up the debug logic
so it's either enabled by DEBUG_MUTEXES or DEBUG_RT_MUTEXES on RT kernels.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210815211304.908012566@linutronix.de
include/linux/ww_mutex.h
kernel/locking/ww_mutex.h