summaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/semaphore.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/kernel/semaphore.c')
-rw-r--r--arch/ia64/kernel/semaphore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ia64/kernel/semaphore.c b/arch/ia64/kernel/semaphore.c
index 980fa4329..bc55670bf 100644
--- a/arch/ia64/kernel/semaphore.c
+++ b/arch/ia64/kernel/semaphore.c
@@ -310,7 +310,7 @@ __down_write_failed (struct rw_semaphore *sem, long count)
do {
old_count = sem->count;
count = old_count - RW_LOCK_BIAS;
- } while (cmpxchg(&sem->count, old_count, count) != old_count);
+ } while (cmpxchg_acq(&sem->count, old_count, count) != old_count);
if (count == 0)
return;