summaryrefslogtreecommitdiffstats
path: root/sys/dev/pv/xen.c
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2016-08-05 18:16:04 +0000
committermikeb <mikeb@openbsd.org>2016-08-05 18:16:04 +0000
commitef2198aad1cba51dff27ca5c9680c6c9a5fc608b (patch)
treee1a87e3b559d61baf10b0d63f63f94d0a450e0bf /sys/dev/pv/xen.c
parentFixup incorrect EAGAIN handling (diff)
downloadwireguard-openbsd-ef2198aad1cba51dff27ca5c9680c6c9a5fc608b.tar.xz
wireguard-openbsd-ef2198aad1cba51dff27ca5c9680c6c9a5fc608b.zip
Switch pending event clearing to an atomic swap operation
Rather than performing an atomic bit clearing for every encountered event bit set we can adjust the code to perform an atomic swap of a single row of the events array and decrease the amount of expensive atomic operations. From FreeBSD.
Diffstat (limited to 'sys/dev/pv/xen.c')
0 files changed, 0 insertions, 0 deletions