1 #ifndef __ASM_GENERIC_CPUMASK_H
2 #define __ASM_GENERIC_CPUMASK_H
4 #include <linux/config.h>
5 #include <linux/kernel.h>
6 #include <linux/threads.h>
7 #include <linux/types.h>
8 #include <linux/bitmap.h>
10 #if NR_CPUS > BITS_PER_LONG && NR_CPUS != 1
11 #define CPU_ARRAY_SIZE BITS_TO_LONGS(NR_CPUS)
15 unsigned long mask[CPU_ARRAY_SIZE];
18 typedef struct cpumask cpumask_t;
21 typedef unsigned long cpumask_t;
25 #if NR_CPUS > BITS_PER_LONG
26 #include <asm-generic/cpumask_array.h>
28 #include <asm-generic/cpumask_arith.h>
31 #include <asm-generic/cpumask_up.h>
34 #if NR_CPUS <= 4*BITS_PER_LONG
35 #include <asm-generic/cpumask_const_value.h>
37 #include <asm-generic/cpumask_const_reference.h>
40 #endif /* __ASM_GENERIC_CPUMASK_H */