MIPS: smp-cps: set a coherent default CCA
authorPaul Burton <paul.burton@imgtec.com>
Mon, 14 Apr 2014 14:58:45 +0000 (15:58 +0100)
committerPaul Burton <paul.burton@imgtec.com>
Wed, 28 May 2014 15:20:33 +0000 (16:20 +0100)
This patch sets a default CCA suited for use with multi-core SMP on all
current MIPS CPS based systems. It may still be overriden by the cca=
argument on the kernel command line.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
arch/mips/kernel/smp-cps.c

index e2f78b34ff93550c6016dd17ceac66eb9eeaad81..6b96fedf0407d675428e7ca742dadc5500a95090 100644 (file)
@@ -76,6 +76,9 @@ static void __init cps_smp_setup(void)
                __cpu_logical_map[v] = v;
        }
 
+       /* Set a coherent default CCA (CWB) */
+       change_c0_config(CONF_CM_CMASK, 0x5);
+
        /* Core 0 is powered up (we're running on it) */
        bitmap_set(core_power, 0, 1);
 
This page took 0.026726 seconds and 5 git commands to generate.