Print this page
5042 stop using deprecated atomic functions

*** 526,537 **** #define CPUSET_BOUNDS(set, smallest, largest) { \ smallest = (uint_t)(lowbit(set) - 1); \ largest = (uint_t)(highbit(set) - 1); \ } ! #define CPUSET_ATOMIC_DEL(set, cpu) atomic_and_long(&(set), ~CPUSET(cpu)) ! #define CPUSET_ATOMIC_ADD(set, cpu) atomic_or_long(&(set), CPUSET(cpu)) #define CPUSET_ATOMIC_XADD(set, cpu, result) \ { result = atomic_set_long_excl(&(set), (cpu)); } #define CPUSET_ATOMIC_XDEL(set, cpu, result) \ --- 526,537 ---- #define CPUSET_BOUNDS(set, smallest, largest) { \ smallest = (uint_t)(lowbit(set) - 1); \ largest = (uint_t)(highbit(set) - 1); \ } ! #define CPUSET_ATOMIC_DEL(set, cpu) atomic_and_ulong(&(set), ~CPUSET(cpu)) ! #define CPUSET_ATOMIC_ADD(set, cpu) atomic_or_ulong(&(set), CPUSET(cpu)) #define CPUSET_ATOMIC_XADD(set, cpu, result) \ { result = atomic_set_long_excl(&(set), (cpu)); } #define CPUSET_ATOMIC_XDEL(set, cpu, result) \