hikey: fix for CPU topology
authorLeo Yan <leo.yan@linaro.org>
Sat, 27 May 2017 05:12:40 +0000 (13:12 +0800)
committerHaojian Zhuang <haojian.zhuang@linaro.org>
Wed, 31 May 2017 05:19:05 +0000 (13:19 +0800)
Fix for CPU topology so present the CPU core numbers for two clusters;
Base on this fixing, the PSCI can maintain correct power states.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
plat/hisilicon/hikey/hikey_topology.c

index 37ea20ad9046fa048d74890074ea69372893ef26..95948b8d2e945987c6f48a96ec4eafd75447e64d 100644 (file)
@@ -18,8 +18,10 @@ const unsigned char hikey_power_domain_tree_desc[] = {
        1,
        /* Number of clusters */
        PLATFORM_CLUSTER_COUNT,
-       /* Number of CPU cores */
-       PLATFORM_CORE_COUNT
+       /* Number of children for the first cluster node */
+       PLATFORM_CORE_COUNT_PER_CLUSTER,
+       /* Number of children for the second cluster node */
+       PLATFORM_CORE_COUNT_PER_CLUSTER,
 };
 
 /*******************************************************************************