]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: log physical ID of boot CPU
authorMark Rutland <mark.rutland@arm.com>
Tue, 4 Nov 2014 10:50:16 +0000 (10:50 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 6 Nov 2014 17:25:29 +0000 (17:25 +0000)
commit39e9cdf59f1e0478ef959d74b6c0b2ff90365bda
tree8c8258b444318929d38218fffdf6ed5b99a1bd74
parenta2b23ac35a59d4b37cdeb7270a0d0a321a1d2efd
arm64: log physical ID of boot CPU

In certain debugging scenarios it's useful to know the physical ID (i.e.
the MPIDR_EL1.Aff* fields) of the boot CPU, but we don't currently log
this as we do for 32-bit ARM kernels.

This patch makes the kernel log the physical ID of the boot CPU early in
the boot process. The CPU logical map initialisation is folded in to
smp_setup_processor_id (which contrary to its name is also called by UP
kernels). This is called before setup_arch, so should not adversely
affect existing cpu_logical_map users.

Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Lorenzo Pieralisis <lorenzo.pieralisi@arm.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/setup.c