linux-hardened/arch/arm64
Javi Merino 4c7aa00213 arm64: kernel: initialise cpu_logical_map from the DT
When booting the kernel, the cpu logical id map must be initialised
using device tree data passed by FW or through an embedded blob.

This patch parses the reg property in device tree "cpu" nodes,
retrieves the corresponding CPUs hardware identifiers (MPIDR) and
initialises the cpu logical map accordingly.

The device tree HW identifiers are considered valid if all CPU nodes
contain a "reg" property, there are no duplicate "reg" entries and the
DT defines a CPU node whose "reg" property defines affinity levels
that matches those of the boot CPU.

The primary CPU is assigned cpu logical number 0 to keep the current
convention valid.

Based on a0ae024050 (ARM: kernel: add
device tree init map function).

Signed-off-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2013-03-20 17:26:24 +00:00
..
boot arm64: dts: prevent *.dtb from always being rebuilt 2013-01-14 08:08:28 -06:00
configs arm64: Kconfig.debug: Remove unused CONFIG_DEBUG_ERRORS 2013-03-19 16:19:19 +00:00
include arm64: kernel: initialise cpu_logical_map from the DT 2013-03-20 17:26:24 +00:00
kernel arm64: kernel: initialise cpu_logical_map from the DT 2013-03-20 17:26:24 +00:00
lib arm64: Miscellaneous library functions 2012-09-17 13:42:18 +01:00
mm memory-hotplug: remove memmap of sparse-vmemmap 2013-02-23 17:50:12 -08:00
Kconfig arm64: Do not select GENERIC_HARDIRQS_NO_DEPRECATED 2013-03-19 15:39:46 +00:00
Kconfig.debug arm64: Kconfig.debug: Remove unused CONFIG_DEBUG_ERRORS 2013-03-19 16:19:19 +00:00
Makefile arm64: Fix the dtbs target building 2012-12-10 20:24:57 -06:00