#ifndef __ASM_GENERIC_CPUMASK_H #define __ASM_GENERIC_CPUMASK_H #include #include #include #include #include #if NR_CPUS > BITS_PER_LONG && NR_CPUS != 1 #define CPU_ARRAY_SIZE BITS_TO_LONGS(NR_CPUS) struct cpumask { unsigned long mask[CPU_ARRAY_SIZE]; }; typedef struct cpumask cpumask_t; #else typedef unsigned long cpumask_t; #endif #ifdef CONFIG_SMP #if NR_CPUS > BITS_PER_LONG #include #else #include #endif #else #include #endif #if NR_CPUS <= 4*BITS_PER_LONG #include #else #include #endif #endif /* __ASM_GENERIC_CPUMASK_H */