MIPS: CPS: Fix use of current_cpu_data in preemptible code
[sfrench/cifs-2.6.git] / arch / mips / kernel / smp-cps.c
index 7d6af41888e8de7335cf180f8eba8ba76a775cea..ecc1a853f48d4225b72ea0dd7299c64e450653c1 100644 (file)
@@ -306,7 +306,7 @@ static int cps_boot_secondary(int cpu, struct task_struct *idle)
        int err;
 
        /* We don't yet support booting CPUs in other clusters */
-       if (cpu_cluster(&cpu_data[cpu]) != cpu_cluster(&current_cpu_data))
+       if (cpu_cluster(&cpu_data[cpu]) != cpu_cluster(&raw_current_cpu_data))
                return -ENOSYS;
 
        vpe_cfg->pc = (unsigned long)&smp_bootstrap;