arm64: cpuinfo: record cpu system register values
authorMark Rutland <mark.rutland@arm.com>
Wed, 16 Jul 2014 15:32:44 +0000 (16:32 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 18 Jul 2014 14:24:09 +0000 (15:24 +0100)
commitdf857416a13734ed9356f6e4f0152d55e4fb748a
treec18089d69b5ecc00ba4d2828899801ac5cadb270
parent89c4a306e7631bcb71cc537c8a029172af6047fe
arm64: cpuinfo: record cpu system register values

Several kernel subsystems need to know details about CPU system register
values, sometimes for CPUs other than that they are executing on. Rather
than hard-coding system register accesses and cross-calls for these
cases, this patch adds logic to record various system register values at
boot-time. This may be used for feature reporting, firmware bug
detection, etc.

Separate hooks are added for the boot and hotplug paths to enable
one-time intialisation and cold/warm boot value mismatch detection in
later patches.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/cpu.h [new file with mode: 0644]
arch/arm64/kernel/Makefile
arch/arm64/kernel/cpuinfo.c [new file with mode: 0644]
arch/arm64/kernel/setup.c
arch/arm64/kernel/smp.c