arm64: topology: Implement basic CPU topology support
authorMark Brown <broonie@linaro.org>
Tue, 4 Mar 2014 07:51:17 +0000 (07:51 +0000)
committerMark Brown <broonie@linaro.org>
Fri, 9 May 2014 20:38:43 +0000 (21:38 +0100)
commit503df7650a88182264aeeb3c7893059a594ea20a
tree96a46a06f962e718072f0868f1824a2b5f1934d0
parent1b916b2e58c1a3b094360b45cd8e7853ddbf6bd8
arm64: topology: Implement basic CPU topology support

Add basic CPU topology support to arm64, based on the existing pre-v8
code and some work done by Mark Hambleton.  This patch does not
implement any topology discovery support since that should be based on
information from firmware, it merely implements the scaffolding for
integration of topology support in the architecture.

No locking of the topology data is done since it is only modified during
CPU bringup with external serialisation from the SMP code.

The goal is to separate the architecture hookup for providing topology
information from the DT parsing in order to ease review and avoid
blocking the architecture code (which will be built on by other work)
with the DT code review by providing something simple and basic.

Following patches will implement support for interpreting topology
information from MPIDR and for parsing the DT topology bindings for ARM,
similar patches will be needed for ACPI.

Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
[catalin.marinas@arm.com: removed CONFIG_CPU_TOPOLOGY, always on if SMP]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit f6e763b93a6cd3411fd8df925344022719bcba62)
Signed-off-by: Mark Brown <broonie@linaro.org>
Conflicts:
arch/arm64/kernel/Makefile
arch/arm64/Kconfig
arch/arm64/include/asm/topology.h [new file with mode: 0644]
arch/arm64/kernel/Makefile
arch/arm64/kernel/smp.c
arch/arm64/kernel/topology.c [new file with mode: 0644]