ARM: bL_switcher: remove assumptions between logical and physical CPUs
authorNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 14 Jun 2013 03:42:46 +0000 (23:42 -0400)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 19 Jun 2013 20:54:25 +0000 (16:54 -0400)
commitbb26fab4a467c271e062e52e2f6cc69b66a6dbf0
treec08b9d6d83f137384c749f9e1e6f0af2703bda82
parent57ec6e48712f52c31accb7deca46899032766948
ARM: bL_switcher: remove assumptions between logical and physical CPUs

Up to now, the logical CPU was somehow tied to the physical CPU number
within a cluster.  This causes problems when forcing the boot CPU to be
different from the first enumerated CPU in the device tree creating a
discrepancy between logical and physical CPU numbers.

Let's make the pairing completely independent from physical CPU numbers.

Let's keep only those logical CPUs with same initial CPU cluster to create
a uniform scheduler profile without having to modify any of the probed
topology and compute capacity data.  This has the potential to create
a non contiguous CPU numbering space when the switcher is active with
potential impact on buggy user space tools.  It is however better to fix
those tools rather than making the switcher code more intrusive.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
arch/arm/common/bL_switcher.c