locking/rtmutex: Consolidate rt_mutex_init()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 26 Mar 2021 15:29:33 +0000 (16:29 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 29 Mar 2021 13:57:02 +0000 (15:57 +0200)
commit199cacd1a625cfc499d624b98b10dc763062f7dd
tree9413aa50ee4ea36bd3044a59725e97c949ff86fb
parent6d41c675a5394057f6fb1dc97cc0a0e360f2c2f8
locking/rtmutex: Consolidate rt_mutex_init()

rt_mutex_init() only initializes lockdep if CONFIG_DEBUG_RT_MUTEXES is
enabled, which is fine because all lockdep variants select it, but there is
no reason to do so.

Move the function outside of the CONFIG_DEBUG_RT_MUTEXES block which
removes #ifdeffery.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
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.437405350@linutronix.de
include/linux/rtmutex.h