sched: fix arch_get_fast_and_slow_cpus to get logical cpumask correctly
authorSudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Mon, 24 Sep 2012 13:07:20 +0000 (14:07 +0100)
committerJon Medhurst <tixy@linaro.org>
Wed, 17 Jul 2013 10:12:26 +0000 (11:12 +0100)
commita9f9bca843e44144670c660638274363f34b9847
tree82ac0ad732beb27f7d2f91a3a781a308dcfec463
parenteeebbf595c8dcd6392537c4d13b8cda78001f4e5
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>
arch/arm/kernel/topology.c