summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_futex.c
diff options
context:
space:
mode:
authorpirofti <pirofti@openbsd.org>2012-11-19 15:03:55 +0000
committerpirofti <pirofti@openbsd.org>2012-11-19 15:03:55 +0000
commit4f47650be7ae20157b811f324ed2a94a3346840c (patch)
treed073674aecba8845858464b052a4af564f1886b7 /sys/compat/linux/linux_futex.c
parentdocument BULK change (diff)
downloadwireguard-openbsd-4f47650be7ae20157b811f324ed2a94a3346840c.tar.xz
wireguard-openbsd-4f47650be7ae20157b811f324ed2a94a3346840c.zip
Use a more descriptive name for the userland cas operation.
Substitute atomic_ucas_32 with futex_atomic_ucas_int32 to make it obvious who's using this api. Suggested by and okay kettenis@.
Diffstat (limited to 'sys/compat/linux/linux_futex.c')
-rw-r--r--sys/compat/linux/linux_futex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c
index c8eb1cc8e2e..3edfa44dd72 100644
--- a/sys/compat/linux/linux_futex.c
+++ b/sys/compat/linux/linux_futex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_futex.c,v 1.9 2012/06/19 11:47:10 pirofti Exp $ */
+/* $OpenBSD: linux_futex.c,v 1.10 2012/11/19 15:03:55 pirofti Exp $ */
/* $NetBSD: linux_futex.c,v 1.26 2010/07/07 01:30:35 chs Exp $ */
/*-
@@ -634,7 +634,7 @@ futex_atomic_op(struct proc *p, int encoded_op, void *uaddr)
}
oldval = nval;
- error = atomic_ucas_32(uaddr, cval, nval);
+ error = futex_atomic_ucas_int32(uaddr, cval, nval);
if (oldval == cval || error) {
break;
}