From a63db3ec45bcf9782792dba1ebfdb37faa7a4406 Mon Sep 17 00:00:00 2001 From: Leo Yan Date: Sat, 27 May 2017 13:12:40 +0800 Subject: [PATCH] hikey: fix for CPU topology 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 Signed-off-by: Haojian Zhuang --- plat/hisilicon/hikey/hikey_topology.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plat/hisilicon/hikey/hikey_topology.c b/plat/hisilicon/hikey/hikey_topology.c index 37ea20ad9..95948b8d2 100644 --- a/plat/hisilicon/hikey/hikey_topology.c +++ b/plat/hisilicon/hikey/hikey_topology.c @@ -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, }; /*******************************************************************************