git: kernel - Enhance CPUMASK and atomic ops
Matthew Dillon
dillon at crater.dragonflybsd.org
Fri Jul 15 15:09:59 PDT 2016
commit a556fd061e70b61d76ac9116d2e0577c7e0d86b2
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Fri Jul 15 13:20:32 2016 -0700
kernel - Enhance CPUMASK and atomic ops
* Add atomic_testandset_long()
Add atomic_testandclear_long()
* Add atomic_cmpxchg_long_test(). This is for debugging only, it uses the
'z' flag instead of comparing old-vs-result. But they should have the
same effect.
* Add macros for atomic_store_rel_cpumask() and atomic_load_acq_cpumask().
* Add ATOMIC_CPUMASK_TESTANDSET()
Add ATOMIC_CPUMASK_TESTANDCLR()
Add ATOMIC_CPUMASK_COPY()
Summary of changes:
sys/cpu/x86_64/include/atomic.h | 55 ++++++++++++++++++++++++++++++++++++++++-
sys/cpu/x86_64/include/types.h | 19 +++++++++++---
2 files changed, 70 insertions(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a556fd061e70b61d76ac9116d2e0577c7e0d86b2
--
DragonFly BSD source repository
More information about the Commits
mailing list