|
@@ -66,6 +66,8 @@ EXPORT_SYMBOL(cpu_sibling_map);
|
|
|
/* representing cpus for which sibling maps can be computed */
|
|
|
static cpumask_t cpu_sibling_setup_map;
|
|
|
|
|
|
+cpumask_t cpu_coherent_mask;
|
|
|
+
|
|
|
static inline void set_cpu_sibling_map(int cpu)
|
|
|
{
|
|
|
int i;
|
|
@@ -124,6 +126,7 @@ asmlinkage void start_secondary(void)
|
|
|
cpu = smp_processor_id();
|
|
|
cpu_data[cpu].udelay_val = loops_per_jiffy;
|
|
|
|
|
|
+ cpu_set(cpu, cpu_coherent_mask);
|
|
|
notify_cpu_starting(cpu);
|
|
|
|
|
|
set_cpu_online(cpu, true);
|
|
@@ -186,6 +189,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
|
|
|
#ifndef CONFIG_HOTPLUG_CPU
|
|
|
init_cpu_present(cpu_possible_mask);
|
|
|
#endif
|
|
|
+ cpumask_copy(&cpu_coherent_mask, cpu_possible_mask);
|
|
|
}
|
|
|
|
|
|
/* preload SMP state for boot cpu */
|