locking/rtmutex: Add mutex variant for RT
authorThomas Gleixner <tglx@linutronix.de>
Sun, 15 Aug 2021 21:29:01 +0000 (23:29 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 17 Aug 2021 17:05:29 +0000 (19:05 +0200)
commitbb630f9f7a7d43869e4e7f5e4c002207396aea59
treed340e0cebbaf9721f6379f6165e79de44a15ec45
parentf8635d509d807c0a9deb273e19bc5a8a19c52895
locking/rtmutex: Add mutex variant for RT

Add the necessary defines, helpers and API functions for replacing struct mutex on
a PREEMPT_RT enabled kernel with an rtmutex based variant.

No functional change when CONFIG_PREEMPT_RT=n

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/20210815211305.081517417@linutronix.de
include/linux/mutex.h
kernel/locking/mutex.c
kernel/locking/rtmutex_api.c
lib/Kconfig.debug