summaryrefslogtreecommitdiff
path: root/arch/arm64/kernel/cpu_errata.c
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2016-06-28 18:07:30 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2016-07-01 11:30:28 +0100
commit8e2318521bf5837dae093413f81292b59d49d030 (patch)
treefbd32bf6a064e74f2bcf6311b216850111951ce1 /arch/arm64/kernel/cpu_errata.c
parent823066d9edcdfe4cedb06216c2b1f91efaf68a87 (diff)
arm64: errata: Calling enable functions for CPU errata too
Currently we call the (optional) enable function for CPU _features_ only. As CPU _errata_ descriptions share the same data structure and having an enable function is useful for errata as well (for instance to set bits in SCTLR), lets call it when enumerating erratas too. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/cpu_errata.c')
-rw-r--r--arch/arm64/kernel/cpu_errata.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c
index d42789499f17..c2261a7a316e 100644
--- a/arch/arm64/kernel/cpu_errata.c
+++ b/arch/arm64/kernel/cpu_errata.c
@@ -127,3 +127,8 @@ void check_local_cpu_errata(void)
{
update_cpu_capabilities(arm64_errata, "enabling workaround for");
}
+
+void __init enable_errata_workarounds(void)
+{
+ enable_cpu_capabilities(arm64_errata);
+}