Skip to content

Commit

Permalink
ARM: mcpm: support 4 clusters
Browse files Browse the repository at this point in the history
Add the CONFIG_MCPM_QUAD_CLUSTER configuration to enlarge cluster number
from 2 to 4.

Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Reviewed-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
  • Loading branch information
Haojian Zhuang authored and Wei Xu committed Sep 3, 2014
1 parent 7d1311b commit ebf4a5c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1405,6 +1405,15 @@ config MCPM
for (multi-)cluster based systems, such as big.LITTLE based
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
bool "big.LITTLE support (Experimental)"
depends on CPU_V7 && SMP
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/include/asm/mcpm.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@
* to consider dynamic allocation.
*/
#define MAX_CPUS_PER_CLUSTER 4

#ifdef CONFIG_MCPM_QUAD_CLUSTER
#define MAX_NR_CLUSTERS 4
#else
#define MAX_NR_CLUSTERS 2
#endif

#ifndef __ASSEMBLY__

Expand Down

0 comments on commit ebf4a5c

Please sign in to comment.