Commit 72d78d05 authored by Rusty Russell's avatar Rusty Russell

cpumask: remove unused cpu_mask_all

It's only defined for NR_CPUS > BITS_PER_LONG; cpu_all_mask is always
defined (and const).
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 51c870a2
...@@ -332,9 +332,6 @@ static inline const struct cpumask *get_cpu_mask(unsigned int cpu) ...@@ -332,9 +332,6 @@ static inline const struct cpumask *get_cpu_mask(unsigned int cpu)
[BITS_TO_LONGS(NR_CPUS)-1] = CPU_MASK_LAST_WORD \ [BITS_TO_LONGS(NR_CPUS)-1] = CPU_MASK_LAST_WORD \
} } } }
/* cpu_mask_all is in init/main.c */
extern cpumask_t cpu_mask_all;
#endif #endif
#define CPU_MASK_NONE \ #define CPU_MASK_NONE \
......
...@@ -360,11 +360,6 @@ static inline void smp_prepare_cpus(unsigned int maxcpus) { } ...@@ -360,11 +360,6 @@ static inline void smp_prepare_cpus(unsigned int maxcpus) { }
#else #else
#if NR_CPUS > BITS_PER_LONG
cpumask_t cpu_mask_all __read_mostly = CPU_MASK_ALL;
EXPORT_SYMBOL(cpu_mask_all);
#endif
/* Setup number of possible processor ids */ /* Setup number of possible processor ids */
int nr_cpu_ids __read_mostly = NR_CPUS; int nr_cpu_ids __read_mostly = NR_CPUS;
EXPORT_SYMBOL(nr_cpu_ids); EXPORT_SYMBOL(nr_cpu_ids);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment