diff options
author | attilio <attilio@FreeBSD.org> | 2011-07-04 12:18:12 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2011-07-04 12:18:12 +0000 |
commit | 547ab0764389293fa87b6686d9a8890ebb10ad94 (patch) | |
tree | 2e76b82f2a832be307f44f1d02cba7c9ebe4df12 | |
parent | 364d0522f778b206262efce0932d6cea821879c6 (diff) | |
download | FreeBSD-src-547ab0764389293fa87b6686d9a8890ebb10ad94.zip FreeBSD-src-547ab0764389293fa87b6686d9a8890ebb10ad94.tar.gz |
- Remove the now unused CPU_NAND_ATOMIC()
- Add a comment explaining that CPU_OR_ATOMIC() and
CPU_COPY_STORE_REL() are special wrappers used to cater particular
cases.
-rw-r--r-- | sys/sys/cpuset.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/sys/cpuset.h b/sys/sys/cpuset.h index 030a874..3b2fdbb 100644 --- a/sys/sys/cpuset.h +++ b/sys/sys/cpuset.h @@ -131,6 +131,7 @@ #define CPU_SET_ATOMIC(n, p) \ atomic_set_long(&(p)->__bits[(n)/_NCPUBITS], __cpuset_mask(n)) +/* Convenience functions catering special cases. */ #define CPU_OR_ATOMIC(d, s) do { \ __size_t __i; \ for (__i = 0; __i < _NCPUWORDS; __i++) \ @@ -138,13 +139,6 @@ (s)->__bits[__i]); \ } while (0) -#define CPU_NAND_ATOMIC(d, s) do { \ - __size_t __i; \ - for (__i = 0; __i < _NCPUWORDS; __i++) \ - atomic_clear_long(&(d)->__bits[__i], \ - (s)->__bits[__i]); \ -} while (0) - #define CPU_COPY_STORE_REL(f, t) do { \ __size_t __i; \ for (__i = 0; __i < _NCPUWORDS; __i++) \ |