Lines Matching refs:set
125 * Note that cpu_disp is set before the CPU is added to the system
129 char cpu_runrun; /* scheduling flag - set to preempt */
177 struct squeue_set_s *cpu_squeue_set; /* per cpu squeue set */
319 * CPU_OFFLINE set if there are any bound threads (besides interrupts).
321 * CPU_QUIESCED is set if p_offline was able to completely turn idle the
330 * The following flags are set for powered off CPUs: CPU_QUIESCED,
427 #define CPUSET_ALL(set) cpuset_all(&(set))
428 #define CPUSET_ALL_BUT(set, cpu) cpuset_all_but(&(set), cpu)
429 #define CPUSET_ONLY(set, cpu) cpuset_only(&(set), cpu)
430 #define CPU_IN_SET(set, cpu) BT_TEST((set).cpub, cpu)
431 #define CPUSET_ADD(set, cpu) BT_SET((set).cpub, cpu)
432 #define CPUSET_DEL(set, cpu) BT_CLEAR((set).cpub, cpu)
433 #define CPUSET_ISNULL(set) cpuset_isnull(&(set))
439 * could be found. (i.e. empty set)
441 #define CPUSET_FIND(set, cpu) { \
442 cpu = cpuset_find(&(set)); \
446 * Determine the smallest and largest CPU id in the set. Returns
447 * CPUSET_NOTINSET in smallest and largest when set is empty.
449 #define CPUSET_BOUNDS(set, smallest, largest) { \
450 cpuset_bounds(&(set), &(smallest), &(largest)); \
456 * "xdel" and "xadd" are exclusive operations, that set "result" to "0"
462 #define CPUSET_ATOMIC_DEL(set, cpu) BT_ATOMIC_CLEAR((set).cpub, (cpu))
463 #define CPUSET_ATOMIC_ADD(set, cpu) BT_ATOMIC_SET((set).cpub, (cpu))
465 #define CPUSET_ATOMIC_XADD(set, cpu, result) \
466 BT_ATOMIC_SET_EXCL((set).cpub, cpu, result)
468 #define CPUSET_ATOMIC_XDEL(set, cpu, result) \
469 BT_ATOMIC_CLEAR_EXCL((set).cpub, cpu, result)
490 #define CPUSET_ZERO(set) { \
493 (set).cpub[_i] = 0; \
498 typedef ulong_t cpuset_t; /* a set of CPUs */
502 #define CPUSET_ALL(set) ((void)((set) = ~0UL))
503 #define CPUSET_ALL_BUT(set, cpu) ((void)((set) = ~CPUSET(cpu)))
504 #define CPUSET_ONLY(set, cpu) ((void)((set) = CPUSET(cpu)))
505 #define CPU_IN_SET(set, cpu) ((set) & CPUSET(cpu))
506 #define CPUSET_ADD(set, cpu) ((void)((set) |= CPUSET(cpu)))
507 #define CPUSET_DEL(set, cpu) ((void)((set) &= ~CPUSET(cpu)))
508 #define CPUSET_ISNULL(set) ((set) == 0)
513 #define CPUSET_ZERO(set) ((void)((set) = 0))
515 #define CPUSET_FIND(set, cpu) { \
516 cpu = (uint_t)(lowbit(set) - 1); \
519 #define CPUSET_BOUNDS(set, smallest, largest) { \
520 smallest = (uint_t)(lowbit(set) - 1); \
521 largest = (uint_t)(highbit(set) - 1); \
524 #define CPUSET_ATOMIC_DEL(set, cpu) atomic_and_ulong(&(set), ~CPUSET(cpu))
525 #define CPUSET_ATOMIC_ADD(set, cpu) atomic_or_ulong(&(set), CPUSET(cpu))
527 #define CPUSET_ATOMIC_XADD(set, cpu, result) \
528 { result = atomic_set_long_excl(&(set), (cpu)); }
530 #define CPUSET_ATOMIC_XDEL(set, cpu, result) \
531 { result = atomic_clear_long_excl(&(set), (cpu)); }
704 void cpu_set_supp_freqs(cpu_t *, const char *); /* set the CPU supported */
784 * CPU_SETUP CPU is set up during boot and can run threads