summaryrefslogtreecommitdiff
path: root/kernel/locking/rtmutex_api.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-10-08 14:41:27 +0200
committerMark Brown <broonie@kernel.org>2026-10-08 14:41:27 +0200
commit9f19c8a019d7c1fb720133ca86154be1ccff39b5 (patch)
treea7c9d53fd675abff61a63352822a3939171ad6aa /kernel/locking/rtmutex_api.c
parent2597b3f0a0e46069ffd754112b2bd33406fb6eec (diff)
parentf52260f49b107fddbcf7c75f9cf2347a5031f0f7 (diff)
downloadlinux-next-9f19c8a019d7c1fb720133ca86154be1ccff39b5.tar.gz
linux-next-9f19c8a019d7c1fb720133ca86154be1ccff39b5.zip
Merge regmap/for-7.4 into regmap-next
Diffstat (limited to 'kernel/locking/rtmutex_api.c')
-rw-r--r--kernel/locking/rtmutex_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/locking/rtmutex_api.c b/kernel/locking/rtmutex_api.c
index 5d48d64725b1..eb18b094473c 100644
--- a/kernel/locking/rtmutex_api.c
+++ b/kernel/locking/rtmutex_api.c
@@ -423,6 +423,7 @@ int __sched rt_mutex_wait_proxy_lock(struct rt_mutex_base *lock,
{
int ret;
+ rt_mutex_futex_pre_schedule();
raw_spin_lock_irq(&lock->wait_lock);
/* sleep on the mutex */
set_current_state(TASK_INTERRUPTIBLE);
@@ -433,6 +434,7 @@ int __sched rt_mutex_wait_proxy_lock(struct rt_mutex_base *lock,
*/
fixup_rt_mutex_waiters(lock, true);
raw_spin_unlock_irq(&lock->wait_lock);
+ rt_mutex_futex_post_schedule();
return ret;
}