aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/locking/mutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/locking/mutex.c')
-rw-r--r--kernel/locking/mutex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/locking/mutex.c b/kernel/locking/mutex.c
index d3100521388c..ae712b25e492 100644
--- a/kernel/locking/mutex.c
+++ b/kernel/locking/mutex.c
@@ -146,7 +146,7 @@ int mutex_spin_on_owner(struct mutex *lock, struct task_struct *owner)
146 if (need_resched()) 146 if (need_resched())
147 break; 147 break;
148 148
149 arch_mutex_cpu_relax(); 149 cpu_relax_lowlatency();
150 } 150 }
151 rcu_read_unlock(); 151 rcu_read_unlock();
152 152
@@ -464,7 +464,7 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass,
464 * memory barriers as we'll eventually observe the right 464 * memory barriers as we'll eventually observe the right
465 * values at the cost of a few extra spins. 465 * values at the cost of a few extra spins.
466 */ 466 */
467 arch_mutex_cpu_relax(); 467 cpu_relax_lowlatency();
468 } 468 }
469 osq_unlock(&lock->osq); 469 osq_unlock(&lock->osq);
470slowpath: 470slowpath: