diff options
Diffstat (limited to 'kernel/locking/rwsem-xadd.c')
-rw-r--r-- | kernel/locking/rwsem-xadd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/locking/rwsem-xadd.c b/kernel/locking/rwsem-xadd.c index a2391ac135c8..d6203faf2eb1 100644 --- a/kernel/locking/rwsem-xadd.c +++ b/kernel/locking/rwsem-xadd.c | |||
@@ -329,7 +329,7 @@ bool rwsem_spin_on_owner(struct rw_semaphore *sem, struct task_struct *owner) | |||
329 | if (need_resched()) | 329 | if (need_resched()) |
330 | break; | 330 | break; |
331 | 331 | ||
332 | arch_mutex_cpu_relax(); | 332 | cpu_relax_lowlatency(); |
333 | } | 333 | } |
334 | rcu_read_unlock(); | 334 | rcu_read_unlock(); |
335 | 335 | ||
@@ -381,7 +381,7 @@ static bool rwsem_optimistic_spin(struct rw_semaphore *sem) | |||
381 | * memory barriers as we'll eventually observe the right | 381 | * memory barriers as we'll eventually observe the right |
382 | * values at the cost of a few extra spins. | 382 | * values at the cost of a few extra spins. |
383 | */ | 383 | */ |
384 | arch_mutex_cpu_relax(); | 384 | cpu_relax_lowlatency(); |
385 | } | 385 | } |
386 | osq_unlock(&sem->osq); | 386 | osq_unlock(&sem->osq); |
387 | done: | 387 | done: |