arm64: Run enable method for errata work arounds on late CPUs
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 17 Jan 2018 17:42:20 +0000 (17:42 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 23 Jan 2018 16:34:37 +0000 (16:34 +0000)
commit55b35d070c2534dfb714b883f3c3ae05d02032da
tree806a1b1e26070f2fc875b6fdabeb015801cc9160
parenta8e4c0a919ae310944ed2c9ace11cf3ccd8a609b
arm64: Run enable method for errata work arounds on late CPUs

When a CPU is brought up after we have finalised the system
wide capabilities (i.e, features and errata), we make sure the
new CPU doesn't need a new errata work around which has not been
detected already. However we don't run enable() method on the new
CPU for the errata work arounds already detected. This could
cause the new CPU running without potential work arounds.
It is upto the "enable()" method to decide if this CPU should
do something about the errata.

Fixes: commit 6a6efbb45b7d95c84 ("arm64: Verify CPU errata work arounds on hotplugged CPU")
Cc: Will Deacon <will.deacon@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Andre Przywara <andre.przywara@arm.com>
Cc: Dave Martin <dave.martin@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