sched: fix arch_get_fast_and_slow_cpus to get logical cpumask correctly
authorSudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Thu, 29 Jan 2015 09:08:20 +0000 (18:08 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:41:31 +0000 (13:41 +0900)
commitec57d0e59c0d9558d135232d663934f0dd55ba4f
tree7b6d355f6a31f7917bedddb092e7f22e8a3860f1
parentfa579f1bfd08f8085e096ffa0bdd22eaf3b5791e
sched: fix arch_get_fast_and_slow_cpus to get logical cpumask correctly

The patch "sched: Use device-tree to provide fast/slow CPU list for HMP"
depends on the ordering of CPU's in the device tree. It breaks to determine
the logical mask correctly if the logical mask of the CPUs differ from
physical ordering in the device tree.

This patch fix the logic by depending on the mpidr in the device tree
and mapping that mpidr to the logical cpu.

Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
[k.kozlowski: rebased on 4.1, no signed-off-by of previous committer]
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
arch/arm64/kernel/topology.c