ARM: mcpm: support 4 clusters
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Tue, 15 Apr 2014 06:52:00 +0000 (14:52 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Wed, 3 Sep 2014 13:09:58 +0000 (14:09 +0100)
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>
arch/arm/Kconfig
arch/arm/include/asm/mcpm.h

index c49a775937db39912411a33be3d63a5d31eacfba..e43221ab4048135ac3046d1e821d6539845a0a5c 100644 (file)
@@ -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
index 57ff7f2a30844ab464361178103df9e8d03a9c53..d428e386c88ece8192b0dd336231b651d58957b3 100644 (file)
  * 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__