ARM: topology: remove hwid/MPIDR dependency from cpu_capacity
authorSudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Mon, 17 Jun 2013 13:20:00 +0000 (14:20 +0100)
committerSudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Wed, 21 Aug 2013 09:29:52 +0000 (10:29 +0100)
commit816a8de0017f16c32e747abc5367bf379515b20a
tree2e22726fb553e1f64b9966571571eed5a01d67da
parentbd00860e960e52658cebfd65eeb4748ed6ff039f
ARM: topology: remove hwid/MPIDR dependency from cpu_capacity

Currently the topology code computes cpu capacity and stores it in
the list along with hwid(which is MPIDR) as it parses the CPU nodes
in the device tree. This is required as it needs to be mapped to the
logical CPU later.

Since the CPU device nodes can be retrieved in the logical ordering
using DT/OF helpers, its possible to store cpu_capacity also in logical
ordering and avoid storing hwid for each entry.

This patch removes hwid by making use of of_get_cpu_node.

Cc: Russell King <linux@arm.linux.org.uk>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
arch/arm/kernel/topology.c