]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
arm64: topology: add MPIDR-based detection
authorZi Shen Lim <zlim@broadcom.com>
Sat, 7 Jun 2014 00:55:27 +0000 (01:55 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 9 Jul 2014 11:22:40 +0000 (12:22 +0100)
commit4e6f7084096c08e37f909d7b075a91b72580405f
tree701d86fcc8f65fae5579532aabd623b34e08c7dd
parentcd3de83f147601356395b57a8673e9c5ff1e59d1
arm64: topology: add MPIDR-based detection

Create cpu topology based on MPIDR. When hardware sets MPIDR to sane
values, this method will always work. Therefore it should also work well
as the fallback method. [1]

When we have multiple processing elements in the system, we create
the cpu topology by mapping each affinity level (from lowest to highest)
to threads (if they exist), cores, and clusters.

[1] http://www.spinics.net/lists/arm-kernel/msg317445.html

Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Zi Shen Lim <zlim@broadcom.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/cputype.h
arch/arm64/kernel/topology.c