aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/smp.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-10-13 22:51:28 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-10-13 22:51:28 -0400
commitd780613acc0eeea89e1b3a7d9db765e0f2a4a950 (patch)
tree9161ee46a9ebe7383c05838cea9b090b04d6ba5c /arch/sh/kernel/smp.c
parent36c871992697eaaf88a3682c2c3003a41c54b8c0 (diff)
sh: Only invalidate the I-cache range for secondary CPUs stack_start.
Secondary CPUs already take care of the D-cache bits through the common cache initialization path, and the only thing that is necessary after twiddling around with stack_start is ensuring that the I-cache changes are visible (particularly since this tends to be the only part lacking coherency). Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/smp.c')
-rw-r--r--arch/sh/kernel/smp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sh/kernel/smp.c b/arch/sh/kernel/smp.c
index 442d8d47a41e..6a27c657648d 100644
--- a/arch/sh/kernel/smp.c
+++ b/arch/sh/kernel/smp.c
@@ -120,7 +120,9 @@ int __cpuinit __cpu_up(unsigned int cpu)
120 stack_start.bss_start = 0; /* don't clear bss for secondary cpus */ 120 stack_start.bss_start = 0; /* don't clear bss for secondary cpus */
121 stack_start.start_kernel_fn = start_secondary; 121 stack_start.start_kernel_fn = start_secondary;
122 122
123 flush_cache_all(); 123 flush_icache_range((unsigned long)&stack_start,
124 (unsigned long)&stack_start + sizeof(stack_start));
125 wmb();
124 126
125 plat_start_cpu(cpu, (unsigned long)_stext); 127 plat_start_cpu(cpu, (unsigned long)_stext);
126 128