cpumask: remove unused cpu_mask_all
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 24 Sep 2009 15:34:36 +0000 (09:34 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 24 Sep 2009 00:04:36 +0000 (09:34 +0930)
It's only defined for NR_CPUS > BITS_PER_LONG; cpu_all_mask is always
defined (and const).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/cpumask.h
init/main.c

index c0ab3588129d28ebf6399278919a88d9e6769f65..dbb8367ecf569965be3b26692607897b15bd5f83 100644 (file)
@@ -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                 \
 } }
 
-/* cpu_mask_all is in init/main.c */
-extern cpumask_t cpu_mask_all;
-
 #endif
 
 #define CPU_MASK_NONE                                                  \
index 6107223124e4579a663dde4cb26e91aab68191c1..51695cee186413f33ac3b85d6397a27bf3332557 100644 (file)
@@ -360,11 +360,6 @@ static inline void smp_prepare_cpus(unsigned int maxcpus) { }
 
 #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 */
 int nr_cpu_ids __read_mostly = NR_CPUS;
 EXPORT_SYMBOL(nr_cpu_ids);