]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: cpufeature: Trap CTR_EL0 access only where it is necessary
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 9 Oct 2018 13:47:07 +0000 (14:47 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 16 Oct 2018 10:53:34 +0000 (11:53 +0100)
commitef6296b372b94fee81ebf1d912dabacc0ec44f32
treed2c1918b8acb95d4b5b36c103c82057cac9cd4a1
parent231f4d7ba99d0239e6e6357076155a1309c6e005
arm64: cpufeature: Trap CTR_EL0 access only where it is necessary

When there is a mismatch in the CTR_EL0 field, we trap
access to CTR from EL0 on all CPUs to expose the safe
value. However, we could skip trapping on a CPU which
matches the safe value.

Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/cpu_errata.c