summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhang Zhuoyu <Zhuoyu.Zhang@freescale.com>2014-11-07 08:41:05 (GMT)
committerMatthew Weigel <Matthew.Weigel@freescale.com>2014-12-11 18:40:46 (GMT)
commitdec5da2ead58cd5d16dc0b2f975b9f1877bab703 (patch)
tree96e6bfeed13ed927285fe03080a7e71207699ed6
parent848bd2ca142638debffb775b66b589709f5b9611 (diff)
downloadlinux-fsl-qoriq-dec5da2ead58cd5d16dc0b2f975b9f1877bab703.tar.xz
powerpc/smp: fix cluster enter PCL10 issue when SMT disable on e6500
When CPU SMT feature disabled on e6500, cluster can't enter PCL10. This patch fix it. Signed-off-by: Zhang Zhuoyu <Zhuoyu.Zhang@freescale.com> Change-Id: I362be661ceefd78e5d8b1d6f36331add4e9ef0af Reviewed-on: http://git.am.freescale.net:8181/23341 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Hongtao Jia <hongtao.jia@freescale.com> Reviewed-by: Matthew Weigel <Matthew.Weigel@freescale.com>
-rw-r--r--arch/powerpc/platforms/85xx/smp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/85xx/smp.c b/arch/powerpc/platforms/85xx/smp.c
index 81f6899..1c16f2b 100644
--- a/arch/powerpc/platforms/85xx/smp.c
+++ b/arch/powerpc/platforms/85xx/smp.c
@@ -405,15 +405,13 @@ static void init_cpu_cluster_map(void)
{
struct device_node *l2_cache, *np;
int cpu, i;
- char buf[20];
- ptrdiff_t len = PTR_ALIGN(buf + PAGE_SIZE - 1, PAGE_SIZE) - buf;
- for_each_cpu(cpu, cpu_present_mask) {
+ for_each_cpu(cpu, cpu_online_mask) {
l2_cache = cpu_to_l2cache(cpu);
if (!l2_cache)
continue;
- for_each_cpu(i, cpu_present_mask) {
+ for_each_cpu(i, cpu_online_mask) {
np = cpu_to_l2cache(i);
if (!np)
continue;
@@ -424,7 +422,6 @@ static void init_cpu_cluster_map(void)
of_node_put(np);
}
of_node_put(l2_cache);
- cpumask_scnprintf(buf, len-2, cpu_cluster_mask(cpu));
}
}