diff options
| author | Suzuki K Poulose <suzuki.poulose@arm.com> | 2016-09-09 09:07:09 -0400 |
|---|---|---|
| committer | Will Deacon <will.deacon@arm.com> | 2016-09-09 10:03:28 -0400 |
| commit | 89ba26458b72422e0a1d85eb729a15220b204458 (patch) | |
| tree | 07827148afc56d68b1d3d00a1fd14fe7e1458a0c /arch/arm64/kernel | |
| parent | ee7bc638f140e0586941002ffb82765743dabb97 (diff) | |
arm64: Use consistent naming for errata handling
This is a cosmetic change to rename the functions dealing with
the errata work arounds to be more consistent with their naming.
1) check_local_cpu_errata() => update_cpu_errata_workarounds()
check_local_cpu_errata() actually updates the system's errata work
arounds. So rename it to reflect the same.
2) verify_local_cpu_errata() => verify_local_cpu_errata_workarounds()
Use errata_workarounds instead of _errata.
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel')
| -rw-r--r-- | arch/arm64/kernel/cpu_errata.c | 4 | ||||
| -rw-r--r-- | arch/arm64/kernel/cpufeature.c | 2 | ||||
| -rw-r--r-- | arch/arm64/kernel/cpuinfo.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c index 82b0fc2e637b..5836b3df0094 100644 --- a/arch/arm64/kernel/cpu_errata.c +++ b/arch/arm64/kernel/cpu_errata.c | |||
| @@ -116,7 +116,7 @@ const struct arm64_cpu_capabilities arm64_errata[] = { | |||
| 116 | * and the related information is freed soon after. If the new CPU requires | 116 | * and the related information is freed soon after. If the new CPU requires |
| 117 | * an errata not detected at boot, fail this CPU. | 117 | * an errata not detected at boot, fail this CPU. |
| 118 | */ | 118 | */ |
| 119 | void verify_local_cpu_errata(void) | 119 | void verify_local_cpu_errata_workarounds(void) |
| 120 | { | 120 | { |
| 121 | const struct arm64_cpu_capabilities *caps = arm64_errata; | 121 | const struct arm64_cpu_capabilities *caps = arm64_errata; |
| 122 | 122 | ||
| @@ -131,7 +131,7 @@ void verify_local_cpu_errata(void) | |||
| 131 | } | 131 | } |
| 132 | } | 132 | } |
| 133 | 133 | ||
| 134 | void check_local_cpu_errata(void) | 134 | void update_cpu_errata_workarounds(void) |
| 135 | { | 135 | { |
| 136 | update_cpu_capabilities(arm64_errata, "enabling workaround for"); | 136 | update_cpu_capabilities(arm64_errata, "enabling workaround for"); |
| 137 | } | 137 | } |
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index acd374e2d5d8..c74b8215991f 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c | |||
| @@ -1021,7 +1021,7 @@ void verify_local_cpu_capabilities(void) | |||
| 1021 | if (!sys_caps_initialised) | 1021 | if (!sys_caps_initialised) |
| 1022 | return; | 1022 | return; |
| 1023 | 1023 | ||
| 1024 | verify_local_cpu_errata(); | 1024 | verify_local_cpu_errata_workarounds(); |
| 1025 | verify_local_cpu_features(arm64_features); | 1025 | verify_local_cpu_features(arm64_features); |
| 1026 | verify_local_elf_hwcaps(arm64_elf_hwcaps); | 1026 | verify_local_elf_hwcaps(arm64_elf_hwcaps); |
| 1027 | if (system_supports_32bit_el0()) | 1027 | if (system_supports_32bit_el0()) |
diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index ed1b84fe6925..4fa7b73e27e4 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c | |||
| @@ -364,7 +364,7 @@ static void __cpuinfo_store_cpu(struct cpuinfo_arm64 *info) | |||
| 364 | 364 | ||
| 365 | cpuinfo_detect_icache_policy(info); | 365 | cpuinfo_detect_icache_policy(info); |
| 366 | 366 | ||
| 367 | check_local_cpu_errata(); | 367 | update_cpu_errata_workarounds(); |
| 368 | } | 368 | } |
| 369 | 369 | ||
| 370 | void cpuinfo_store_cpu(void) | 370 | void cpuinfo_store_cpu(void) |
