diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2015-03-27 13:09:23 +0000 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-03-30 11:03:43 +0100 |
commit | 359b706473b47da3c93bd99fd10d798fe411ab67 (patch) | |
tree | 2b0727207e192f5fe08b39bc55d6263a7a2cd01b /arch/arm64/kernel/cpuinfo.c | |
parent | fef7f2b2010381c795ae43743ad31931cc58f5ad (diff) | |
download | linux-359b706473b47da3c93bd99fd10d798fe411ab67.tar.gz linux-359b706473b47da3c93bd99fd10d798fe411ab67.tar.bz2 linux-359b706473b47da3c93bd99fd10d798fe411ab67.zip |
arm64: Extract feature parsing code from cpu_errata.c
As we detect more architectural features at runtime, it makes
sense to reuse the existing framework whilst avoiding to call
a feature an erratum...
This patch extract the core capability parsing, moves it into
a new file (cpufeature.c), and let the CPU errata detection code
use it.
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/cpuinfo.c')
-rw-r--r-- | arch/arm64/kernel/cpuinfo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index 929855691dae..75d5a867e7fb 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c @@ -236,6 +236,7 @@ static void __cpuinfo_store_cpu(struct cpuinfo_arm64 *info) cpuinfo_detect_icache_policy(info); check_local_cpu_errata(); + check_local_cpu_features(); update_cpu_features(info); } |