Lines Matching defs:NR_CPUS

8  * only nr_cpu_ids (<= NR_CPUS) bits are valid.
20 typedef struct cpumask { DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t;
39 #if (NR_CPUS == 1) || defined(CONFIG_FORCE_NR_CPUS)
40 #define nr_cpu_ids ((unsigned int)NR_CPUS)
47 #if (NR_CPUS == 1) || defined(CONFIG_FORCE_NR_CPUS)
60 * the size is constant. So if NR_CPUS fits in one single word, we are
78 #if NR_CPUS <= BITS_PER_LONG
79 #define small_cpumask_bits ((unsigned int)NR_CPUS)
80 #define large_cpumask_bits ((unsigned int)NR_CPUS)
81 #elif NR_CPUS <= 4*BITS_PER_LONG
83 #define large_cpumask_bits ((unsigned int)NR_CPUS)
116 * 1) UP ARCHes (NR_CPUS == 1, CONFIG_SMP not defined) hardcode
232 #if NR_CPUS == 1
254 #endif /* NR_CPUS */
285 #if NR_CPUS == 1
457 [0 ... BITS_TO_LONGS(NR_CPUS)-1] = 0UL \
878 * NR_CPUS bits). Therefore you don't have to dereference cpumask_var_t.
886 * This code makes NR_CPUS length memcopy and brings to a memory corruption.
998 extern const DECLARE_BITMAP(cpu_all_bits, NR_CPUS);
1004 #if NR_CPUS == 1
1022 bitmap_zero(cpumask_bits(&__cpu_possible_mask), NR_CPUS);
1064 * to_cpumask - convert a NR_CPUS bitmap to a struct cpumask *
1090 cpu_bit_bitmap[BITS_PER_LONG+1][BITS_TO_LONGS(NR_CPUS)];
1099 #if NR_CPUS > 1
1175 #endif /* NR_CPUS > 1 */
1179 #if NR_CPUS <= BITS_PER_LONG
1182 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1185 #else /* NR_CPUS > BITS_PER_LONG */
1189 [0 ... BITS_TO_LONGS(NR_CPUS)-2] = ~0UL, \
1190 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1192 #endif /* NR_CPUS > BITS_PER_LONG */
1257 #if NR_CPUS <= BITS_PER_LONG
1260 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1265 [0 ... BITS_TO_LONGS(NR_CPUS)-2] = ~0UL, \
1266 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1268 #endif /* NR_CPUS > BITS_PER_LONG */
1272 [0 ... BITS_TO_LONGS(NR_CPUS)-1] = 0UL \
1285 * for cpumap NR_CPUS * 9/32 - 1 should be an exact length.
1287 * For cpulist 7 is (ceil(log10(NR_CPUS)) + 1) allowing for NR_CPUS to be up
1290 * very large NR_CPUS.
1295 #define CPUMAP_FILE_MAX_BYTES (((NR_CPUS * 9)/32 > PAGE_SIZE) \
1296 ? (NR_CPUS * 9)/32 - 1 : PAGE_SIZE)
1297 #define CPULIST_FILE_MAX_BYTES (((NR_CPUS * 7)/2 > PAGE_SIZE) ? (NR_CPUS * 7)/2 : PAGE_SIZE)