Replace fetch_and_add() with atomic_inc_int_nv() from <sys/atomic.h>
authorvisa <visa@openbsd.org>
Sun, 16 Apr 2017 14:28:07 +0000 (14:28 +0000)
committervisa <visa@openbsd.org>
Sun, 16 Apr 2017 14:28:07 +0000 (14:28 +0000)
commit8e6185f1908bd67b87ca9279b82b89927dff5dcb
tree91d62a96731aae24a48d36f5ac1fa6e654891ecf
parent760844cebca3b03c1e6de096a03629b49a7ac2e2
Replace fetch_and_add() with atomic_inc_int_nv() from <sys/atomic.h>
to make the code more similar to sparc64's.

OK mpi@, guenther@, kettenis@
sys/arch/amd64/amd64/lock_machdep.c
sys/arch/i386/i386/lock_machdep.c