Lines Matching refs:NR_CPUS
17 typedef struct cpumask { DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t;
36 #if NR_CPUS == 1
47 #define nr_cpumask_bits ((unsigned int)NR_CPUS)
119 #if NR_CPUS == 1
296 [0 ... BITS_TO_LONGS(NR_CPUS)-1] = 0UL \
782 extern const DECLARE_BITMAP(cpu_all_bits, NR_CPUS);
799 bitmap_zero(cpumask_bits(&__cpu_possible_mask), NR_CPUS); in reset_cpu_possible_mask()
867 cpu_bit_bitmap[BITS_PER_LONG+1][BITS_TO_LONGS(NR_CPUS)];
876 #if NR_CPUS > 1
954 #if NR_CPUS <= BITS_PER_LONG
957 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
964 [0 ... BITS_TO_LONGS(NR_CPUS)-2] = ~0UL, \
965 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1025 #if NR_CPUS <= BITS_PER_LONG
1028 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1033 [0 ... BITS_TO_LONGS(NR_CPUS)-2] = ~0UL, \
1034 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1040 [0 ... BITS_TO_LONGS(NR_CPUS)-1] = 0UL \
1063 #define CPUMAP_FILE_MAX_BYTES (((NR_CPUS * 9)/32 > PAGE_SIZE) \
1064 ? (NR_CPUS * 9)/32 - 1 : PAGE_SIZE)
1065 #define CPULIST_FILE_MAX_BYTES (((NR_CPUS * 7)/2 > PAGE_SIZE) ? (NR_CPUS * 7)/2 : PAGE_SIZE)