Lines Matching refs:NR_CPUS
27 #if (NR_CPUS == 1) || defined(CONFIG_FORCE_NR_CPUS)
28 #define nr_cpu_ids ((unsigned int)NR_CPUS)
35 #if (NR_CPUS == 1) || defined(CONFIG_FORCE_NR_CPUS) in set_nr_cpu_ids()
66 #if NR_CPUS <= BITS_PER_LONG
67 #define small_cpumask_bits ((unsigned int)NR_CPUS)
68 #define large_cpumask_bits ((unsigned int)NR_CPUS)
69 #elif NR_CPUS <= 4*BITS_PER_LONG
71 #define large_cpumask_bits ((unsigned int)NR_CPUS)
241 #if NR_CPUS == 1
520 [0 ... BITS_TO_LONGS(NR_CPUS)-1] = 0UL \
1042 extern const DECLARE_BITMAP(cpu_all_bits, NR_CPUS);
1048 #if NR_CPUS == 1
1112 cpu_bit_bitmap[BITS_PER_LONG+1][BITS_TO_LONGS(NR_CPUS)];
1121 #if NR_CPUS > 1
1213 #if NR_CPUS <= BITS_PER_LONG
1216 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1223 [0 ... BITS_TO_LONGS(NR_CPUS)-2] = ~0UL, \
1224 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1291 #if NR_CPUS <= BITS_PER_LONG
1294 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1299 [0 ... BITS_TO_LONGS(NR_CPUS)-2] = ~0UL, \
1300 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1306 [0 ... BITS_TO_LONGS(NR_CPUS)-1] = 0UL \
1329 #define CPUMAP_FILE_MAX_BYTES (((NR_CPUS * 9)/32 > PAGE_SIZE) \
1330 ? (NR_CPUS * 9)/32 - 1 : PAGE_SIZE)
1331 #define CPULIST_FILE_MAX_BYTES (((NR_CPUS * 7)/2 > PAGE_SIZE) ? (NR_CPUS * 7)/2 : PAGE_SIZE)