mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 23:21:46 +00:00
locking/rtmutex: Use the correct rtmutex debugging config option
It's CONFIG_DEBUG_RT_MUTEXES not CONFIG_DEBUG_RT_MUTEX.
Fixes: f7efc4799f
("locking/rtmutex: Inline chainwalk depth check")
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Will Deacon <will@kernel.org>
Acked-by: Boqun Feng <boqun.feng@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20210731123011.4555-1-thunder.leizhen@huawei.com
This commit is contained in:
parent
36a21d5172
commit
07d25971b2
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ static __always_inline bool
|
||||||
rt_mutex_cond_detect_deadlock(struct rt_mutex_waiter *waiter,
|
rt_mutex_cond_detect_deadlock(struct rt_mutex_waiter *waiter,
|
||||||
enum rtmutex_chainwalk chwalk)
|
enum rtmutex_chainwalk chwalk)
|
||||||
{
|
{
|
||||||
if (IS_ENABLED(CONFIG_DEBUG_RT_MUTEX))
|
if (IS_ENABLED(CONFIG_DEBUG_RT_MUTEXES))
|
||||||
return waiter != NULL;
|
return waiter != NULL;
|
||||||
return chwalk == RT_MUTEX_FULL_CHAINWALK;
|
return chwalk == RT_MUTEX_FULL_CHAINWALK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue