]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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>
Sun, 4 Aug 2013 19:29:13 +0000 (15:29 -0400)
commit38c35d4f2e408c369e3030f0717d35ad443d9223
tree1c308ad9a20b501dd4050191ae2dd418b809e5ea
parentc4821c0575a3b1bf26f100230dc2938297d7043b
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>
Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
arch/arm/common/bL_switcher.c