kernel - Add atomic_fcmpset_*()
commit29a7b5b1c33edc4e23996cd9451878d90f634e0a
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 15 Oct 2017 21:20:56 +0000 (15 14:20 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 16 Oct 2017 18:30:23 +0000 (16 11:30 -0700)
tree40bb797fae0d9650cbed56528d7d002224197534
parentce5d7a1c6d026162bc16d9c3ad1bd8ee8c42ef49
kernel - Add atomic_fcmpset_*()

* Add atomic_fcmpset_*().  GCC has gotten good enough that it no longer
  forces that &count onto the stack.

  These functions work like atomic_cmpset_*() but update the originating
  value on failure, allowing us to avoid reloading it from memory.

Suggested-by: mjg__
sys/cpu/x86_64/include/atomic.h