Author: attilio
Date: Mon Jul  4 12:18:12 2011
New Revision: 223759
URL: http://svn.freebsd.org/changeset/base/223759

Log:
  - 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.

Modified:
  head/sys/sys/cpuset.h

Modified: head/sys/sys/cpuset.h
==============================================================================
--- head/sys/sys/cpuset.h       Mon Jul  4 12:04:52 2011        (r223758)
+++ head/sys/sys/cpuset.h       Mon Jul  4 12:18:12 2011        (r223759)
@@ -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++)                  \
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to