Commit ebf4a5c5 authored by Haojian Zhuang's avatar Haojian Zhuang Committed by Wei Xu

ARM: mcpm: support 4 clusters

Add the CONFIG_MCPM_QUAD_CLUSTER configuration to enlarge cluster number
from 2 to 4.
Signed-off-by: default avatarHaojian Zhuang <haojian.zhuang@linaro.org>
Reviewed-by: default avatarNicolas Pitre <nico@linaro.org>
Signed-off-by: default avatarWei Xu <xuwei5@hisilicon.com>
parent 7d1311b9
...@@ -1405,6 +1405,15 @@ config MCPM ...@@ -1405,6 +1405,15 @@ config MCPM
for (multi-)cluster based systems, such as big.LITTLE based for (multi-)cluster based systems, such as big.LITTLE based
systems. systems.
config MCPM_QUAD_CLUSTER
bool
depends on MCPM
help
To avoid wasting resources unnecessarily, MCPM only supports up
to 2 clusters by default.
Platforms with 3 or 4 clusters that use MCPM must select this
option to allow the additional clusters to be managed.
config BIG_LITTLE config BIG_LITTLE
bool "big.LITTLE support (Experimental)" bool "big.LITTLE support (Experimental)"
depends on CPU_V7 && SMP depends on CPU_V7 && SMP
......
...@@ -20,7 +20,12 @@ ...@@ -20,7 +20,12 @@
* to consider dynamic allocation. * to consider dynamic allocation.
*/ */
#define MAX_CPUS_PER_CLUSTER 4 #define MAX_CPUS_PER_CLUSTER 4
#ifdef CONFIG_MCPM_QUAD_CLUSTER
#define MAX_NR_CLUSTERS 4
#else
#define MAX_NR_CLUSTERS 2 #define MAX_NR_CLUSTERS 2
#endif
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment