diff options
author | Paul Burton <paul.burton@imgtec.com> | 2014-04-14 10:58:45 -0400 |
---|---|---|
committer | Paul Burton <paul.burton@imgtec.com> | 2014-05-28 11:20:33 -0400 |
commit | 33b6866568acce808361fcf25c107c2c94f8eadb (patch) | |
tree | c2a27225b5118e764549849a712fe89e92427aad /arch | |
parent | 5c399f6eb2c3911d94509f8f39bfd9aed6568f86 (diff) |
MIPS: smp-cps: set a coherent default CCA
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/kernel/smp-cps.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/kernel/smp-cps.c b/arch/mips/kernel/smp-cps.c index e2f78b34ff93..6b96fedf0407 100644 --- a/arch/mips/kernel/smp-cps.c +++ b/arch/mips/kernel/smp-cps.c | |||
@@ -76,6 +76,9 @@ static void __init cps_smp_setup(void) | |||
76 | __cpu_logical_map[v] = v; | 76 | __cpu_logical_map[v] = v; |
77 | } | 77 | } |
78 | 78 | ||
79 | /* Set a coherent default CCA (CWB) */ | ||
80 | change_c0_config(CONF_CM_CMASK, 0x5); | ||
81 | |||
79 | /* Core 0 is powered up (we're running on it) */ | 82 | /* Core 0 is powered up (we're running on it) */ |
80 | bitmap_set(core_power, 0, 1); | 83 | bitmap_set(core_power, 0, 1); |
81 | 84 | ||