]> git.baikalelectronics.ru Git - kernel.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)
commit3e42ee825a93b79ef1bde5a693e5a11fb768a0c5
tree701d86fcc8f65fae5579532aabd623b34e08c7dd
parentc74f42708e281e44423fe4210356c12f00e0e17e
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