summaryrefslogtreecommitdiff
path: root/plat/common/plat_topology.c
diff options
context:
space:
mode:
Diffstat (limited to 'plat/common/plat_topology.c')
-rw-r--r--plat/common/plat_topology.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plat/common/plat_topology.c b/plat/common/plat_topology.c
index 5ff7a31..a9b9828 100644
--- a/plat/common/plat_topology.c
+++ b/plat/common/plat_topology.c
@@ -184,11 +184,14 @@ static void get_parent_pwr_domain_nodes(unsigned int cpu_node,
static void update_pwrlvl_limits(void)
{
int cpu_id, j, is_present;
- unsigned int nodes_idx[PLATFORM_MAX_AFFLVL] = {-1};
+ unsigned int nodes_idx[PLATFORM_MAX_AFFLVL];
unsigned int temp_index[PLATFORM_MAX_AFFLVL];
unsigned int cpu_node_offset = tftf_pwr_domain_start_idx[0];
+ for (j = 0; j < PLATFORM_MAX_AFFLVL; j++)
+ nodes_idx[j] = -1;
+
for (cpu_id = 0; cpu_id < PLATFORM_CORE_COUNT; cpu_id++) {
get_parent_pwr_domain_nodes(cpu_id + cpu_node_offset,
PLATFORM_MAX_AFFLVL,