OSDN Git Service

arm: topology: fix the topology reset path during init
authorSrinivas Ramana <sramana@codeaurora.org>
Tue, 28 Jun 2016 06:32:28 +0000 (12:02 +0530)
committerKyle Yan <kyan@codeaurora.org>
Thu, 30 Jun 2016 22:10:51 +0000 (15:10 -0700)
commit1d0f3783d5593423047f94e77a2ed9696e7d1acb
treeb27cf01c4a95c640c24d7c3bef61a0b33710f96e
parent7af744ebdfc52956a669a0a10488285b2984f59b
arm: topology: fix the topology reset path during init

init_cpu_topology has a bug where
1. It's referring to out of bounds array.
2. It's not actually resetting topology for each cpu.

Fix this by iterating for each cpu for resetting topology.

Change-Id: I4df03fb4fbe9cb636f135de982e35173b1900ec2
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
arch/arm/kernel/topology.c