Lines Matching refs:NR_CPUS
19 typedef struct cpumask { DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t;
38 #if (NR_CPUS == 1) || defined(CONFIG_FORCE_NR_CPUS)
39 #define nr_cpu_ids ((unsigned int)NR_CPUS)
46 #if (NR_CPUS == 1) || defined(CONFIG_FORCE_NR_CPUS) in set_nr_cpu_ids()
77 #if NR_CPUS <= BITS_PER_LONG
78 #define small_cpumask_bits ((unsigned int)NR_CPUS)
79 #define large_cpumask_bits ((unsigned int)NR_CPUS)
80 #elif NR_CPUS <= 4*BITS_PER_LONG
82 #define large_cpumask_bits ((unsigned int)NR_CPUS)
231 #if NR_CPUS == 1
284 #if NR_CPUS == 1
456 [0 ... BITS_TO_LONGS(NR_CPUS)-1] = 0UL \
962 extern const DECLARE_BITMAP(cpu_all_bits, NR_CPUS);
968 #if NR_CPUS == 1
986 bitmap_zero(cpumask_bits(&__cpu_possible_mask), NR_CPUS); in reset_cpu_possible_mask()
1054 cpu_bit_bitmap[BITS_PER_LONG+1][BITS_TO_LONGS(NR_CPUS)];
1063 #if NR_CPUS > 1
1141 #if NR_CPUS <= BITS_PER_LONG
1144 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1151 [0 ... BITS_TO_LONGS(NR_CPUS)-2] = ~0UL, \
1152 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1216 #if NR_CPUS <= BITS_PER_LONG
1219 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1224 [0 ... BITS_TO_LONGS(NR_CPUS)-2] = ~0UL, \
1225 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1231 [0 ... BITS_TO_LONGS(NR_CPUS)-1] = 0UL \
1254 #define CPUMAP_FILE_MAX_BYTES (((NR_CPUS * 9)/32 > PAGE_SIZE) \
1255 ? (NR_CPUS * 9)/32 - 1 : PAGE_SIZE)
1256 #define CPULIST_FILE_MAX_BYTES (((NR_CPUS * 7)/2 > PAGE_SIZE) ? (NR_CPUS * 7)/2 : PAGE_SIZE)