Lines Matching refs:NR_CPUS
14 typedef struct cpumask { DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t;
33 #if NR_CPUS == 1
44 #define nr_cpumask_bits NR_CPUS
92 #if NR_CPUS > 1
121 #if NR_CPUS == 1
256 [0 ... BITS_TO_LONGS(NR_CPUS)-1] = 0UL \
643 return BITS_TO_LONGS(NR_CPUS) * sizeof(long); in cpumask_size()
740 extern const DECLARE_BITMAP(cpu_all_bits, NR_CPUS);
786 cpu_bit_bitmap[BITS_PER_LONG+1][BITS_TO_LONGS(NR_CPUS)];
797 #if NR_CPUS <= BITS_PER_LONG
800 [BITS_TO_LONGS(NR_CPUS)-1] = CPU_MASK_LAST_WORD \
807 [0 ... BITS_TO_LONGS(NR_CPUS)-2] = ~0UL, \
808 [BITS_TO_LONGS(NR_CPUS)-1] = CPU_MASK_LAST_WORD \
820 #define CPU_MASK_LAST_WORD BITMAP_LAST_WORD_MASK(NR_CPUS)
822 #if NR_CPUS <= BITS_PER_LONG
826 [BITS_TO_LONGS(NR_CPUS)-1] = CPU_MASK_LAST_WORD \
833 [0 ... BITS_TO_LONGS(NR_CPUS)-2] = ~0UL, \
834 [BITS_TO_LONGS(NR_CPUS)-1] = CPU_MASK_LAST_WORD \
841 [0 ... BITS_TO_LONGS(NR_CPUS)-1] = 0UL \
849 #if NR_CPUS == 1
865 (cpu) < NR_CPUS; )
868 #if NR_CPUS <= 64
896 #define cpus_setall(dst) __cpus_setall(&(dst), NR_CPUS)
902 #define cpus_clear(dst) __cpus_clear(&(dst), NR_CPUS)
917 #define cpus_and(dst, src1, src2) __cpus_and(&(dst), &(src1), &(src2), NR_CPUS)
924 #define cpus_or(dst, src1, src2) __cpus_or(&(dst), &(src1), &(src2), NR_CPUS)
931 #define cpus_xor(dst, src1, src2) __cpus_xor(&(dst), &(src1), &(src2), NR_CPUS)
939 __cpus_andnot(&(dst), &(src1), &(src2), NR_CPUS)
946 #define cpus_equal(src1, src2) __cpus_equal(&(src1), &(src2), NR_CPUS)
953 #define cpus_intersects(src1, src2) __cpus_intersects(&(src1), &(src2), NR_CPUS)
960 #define cpus_subset(src1, src2) __cpus_subset(&(src1), &(src2), NR_CPUS)
967 #define cpus_empty(src) __cpus_empty(&(src), NR_CPUS)
973 #define cpus_weight(cpumask) __cpus_weight(&(cpumask), NR_CPUS)
980 __cpus_shift_left(&(dst), &(src), (n), NR_CPUS)