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()
198 #if NR_CPUS == 1
261 #if NR_CPUS == 1
396 [0 ... BITS_TO_LONGS(NR_CPUS)-1] = 0UL \
910 extern const DECLARE_BITMAP(cpu_all_bits, NR_CPUS);
916 #if NR_CPUS == 1
934 bitmap_zero(cpumask_bits(&__cpu_possible_mask), NR_CPUS); in reset_cpu_possible_mask()
1002 cpu_bit_bitmap[BITS_PER_LONG+1][BITS_TO_LONGS(NR_CPUS)];
1011 #if NR_CPUS > 1
1089 #if NR_CPUS <= BITS_PER_LONG
1092 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1099 [0 ... BITS_TO_LONGS(NR_CPUS)-2] = ~0UL, \
1100 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1160 #if NR_CPUS <= BITS_PER_LONG
1163 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1168 [0 ... BITS_TO_LONGS(NR_CPUS)-2] = ~0UL, \
1169 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1175 [0 ... BITS_TO_LONGS(NR_CPUS)-1] = 0UL \
1198 #define CPUMAP_FILE_MAX_BYTES (((NR_CPUS * 9)/32 > PAGE_SIZE) \
1199 ? (NR_CPUS * 9)/32 - 1 : PAGE_SIZE)
1200 #define CPULIST_FILE_MAX_BYTES (((NR_CPUS * 7)/2 > PAGE_SIZE) ? (NR_CPUS * 7)/2 : PAGE_SIZE)