summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoffer Dall <christoffer.dall@linaro.org>2013-10-18 07:40:08 +0400
committerChristoffer Dall <christoffer.dall@linaro.org>2013-10-18 07:40:08 +0400
commit2f8d01a1475cfede058c6a92b5d3dad576da2827 (patch)
treee004311de4c4c4075e91ca317a19983e2a612209 /lib
parent82ea046c95a3c3ddcfa058c8a270b9afb6e93700 (diff)
parentd570142674890fe10b3d7d86aa105e3dfce1ddfa (diff)
downloadlinux-2f8d01a1475cfede058c6a92b5d3dad576da2827.tar.xz
Merge remote-tracking branch 'kvm/next' into kvm-arm-next
Diffstat (limited to 'lib')
-rw-r--r--lib/lockref.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lockref.c b/lib/lockref.c
index e2cd2c0a8821..677d036cf3c7 100644
--- a/lib/lockref.c
+++ b/lib/lockref.c
@@ -14,8 +14,8 @@
while (likely(arch_spin_value_unlocked(old.lock.rlock.raw_lock))) { \
struct lockref new = old, prev = old; \
CODE \
- old.lock_count = cmpxchg(&lockref->lock_count, \
- old.lock_count, new.lock_count); \
+ old.lock_count = cmpxchg64(&lockref->lock_count, \
+ old.lock_count, new.lock_count); \
if (likely(old.lock_count == prev.lock_count)) { \
SUCCESS; \
} \