diff options
author | Jia Hongtao <hongtao.jia@freescale.com> | 2014-11-05 03:57:35 (GMT) |
---|---|---|
committer | Matthew Weigel <Matthew.Weigel@freescale.com> | 2014-12-11 18:40:24 (GMT) |
commit | c21a39fb1bd60caf511c8c26abb803dca6bc5be2 (patch) | |
tree | e5018dc56792333814cec89e3398d49d4377fb45 /arch/powerpc/platforms | |
parent | fe66d670380dabdacbc74d67a24b5cbc89acabfb (diff) | |
download | linux-fsl-qoriq-c21a39fb1bd60caf511c8c26abb803dca6bc5be2.tar.xz |
Fix cluster calculation issue for checking PCL10 state on e6500
Kernel could not get cluster information from device tree on PowerPC.
The previous way of cluster calculation could be wrong if all cores of
some clusters are disabled. For now PCL10 is only supported on e6500
cores. We hard coded the threads number of each cluster to ensure the
cluster calculation is right.
Signed-off-by: Jia Hongtao <hongtao.jia@freescale.com>
Change-Id: Ia329e48bac1a838828146df9b2caa7f527e329eb
Reviewed-on: http://git.am.freescale.net:8181/23177
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Yuantian Tang <yuantian.tang@freescale.com>
Reviewed-by: Zhuoyu Zhang <Zhuoyu.Zhang@freescale.com>
Reviewed-by: Yang Li <LeoLi@freescale.com>
Reviewed-by: Matthew Weigel <Matthew.Weigel@freescale.com>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/85xx/smp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/85xx/smp.h b/arch/powerpc/platforms/85xx/smp.h index 8b4efc3..c1a471a 100644 --- a/arch/powerpc/platforms/85xx/smp.h +++ b/arch/powerpc/platforms/85xx/smp.h @@ -4,6 +4,8 @@ #include <linux/init.h> #ifdef CONFIG_SMP +#define THREAD_IN_CLUSTER 8 + DECLARE_PER_CPU(cpumask_t, cpu_cluster_map); static inline struct cpumask *cpu_cluster_mask(int cpu) { |