]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbef4a1a002901917aac27906b5175658d6974470
treec18089d69b5ecc00ba4d2828899801ac5cadb270
parent13fccc855b827636b29b5a771d91c711e53ab682
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