locking/rtmutex: Decrapify __rt_mutex_init()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 26 Mar 2021 15:29:38 +0000 (16:29 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 29 Mar 2021 13:57:03 +0000 (15:57 +0200)
commitf5a98866e506a816f6a855df1e7ed41e1891ec66
tree54befe001c16e5f0c684202ebb102dcb89f75805
parent37350e3b2655eb0fce4e0e6ce8ce631c781136fe
locking/rtmutex: Decrapify __rt_mutex_init()

The conditional debug handling is just another layer of obfuscation. Split
the function so rt_mutex_init_proxy_locked() can invoke the inner init and
__rt_mutex_init() gets the full treatment.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210326153943.955697588@linutronix.de
kernel/locking/rtmutex.c
kernel/locking/rtmutex_common.h