|
@@ -363,6 +363,11 @@ 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
|
|
|
|
+
|
|
#ifndef CONFIG_HAVE_SETUP_PER_CPU_AREA
|
|
#ifndef CONFIG_HAVE_SETUP_PER_CPU_AREA
|
|
unsigned long __per_cpu_offset[NR_CPUS] __read_mostly;
|
|
unsigned long __per_cpu_offset[NR_CPUS] __read_mostly;
|
|
|
|
|
|
@@ -811,7 +816,7 @@ static int __init kernel_init(void * unused)
|
|
/*
|
|
/*
|
|
* init can run on any cpu.
|
|
* init can run on any cpu.
|
|
*/
|
|
*/
|
|
- set_cpus_allowed(current, CPU_MASK_ALL);
|
|
|
|
|
|
+ set_cpus_allowed_ptr(current, CPU_MASK_ALL_PTR);
|
|
/*
|
|
/*
|
|
* Tell the world that we're going to be the grim
|
|
* Tell the world that we're going to be the grim
|
|
* reaper of innocent orphaned children.
|
|
* reaper of innocent orphaned children.
|