diff options
author | Mark Brown <broonie@kernel.org> | 2019-07-30 12:26:31 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2019-08-05 12:06:34 +0200 |
commit | 2f8f180b3ceed7a16a92cc3c164368c26e1f9320 (patch) | |
tree | 019bb3b221015ffa058eb016b090793c08cd4bcc | |
parent | arm64: sysreg: Remove unused and rotting SCTLR_ELx field definitions (diff) | |
download | linux-2f8f180b3ceed7a16a92cc3c164368c26e1f9320.tar.xz linux-2f8f180b3ceed7a16a92cc3c164368c26e1f9320.zip |
arm64: Remove unused cpucap_multi_entry_cap_cpu_enable()
The function cpucap_multi_entry_cap_cpu_enable() is unused, remove it to
avoid any confusion reading the code and potential for bit rot.
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
-rw-r--r-- | arch/arm64/include/asm/cpufeature.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/arch/arm64/include/asm/cpufeature.h b/arch/arm64/include/asm/cpufeature.h index c96ffa4722d3..cf65a47ee6b4 100644 --- a/arch/arm64/include/asm/cpufeature.h +++ b/arch/arm64/include/asm/cpufeature.h @@ -363,21 +363,6 @@ cpucap_multi_entry_cap_matches(const struct arm64_cpu_capabilities *entry, return false; } -/* - * Take appropriate action for all matching entries in the shared capability - * entry. - */ -static inline void -cpucap_multi_entry_cap_cpu_enable(const struct arm64_cpu_capabilities *entry) -{ - const struct arm64_cpu_capabilities *caps; - - for (caps = entry->match_list; caps->matches; caps++) - if (caps->matches(caps, SCOPE_LOCAL_CPU) && - caps->cpu_enable) - caps->cpu_enable(caps); -} - extern DECLARE_BITMAP(cpu_hwcaps, ARM64_NCAPS); extern struct static_key_false cpu_hwcap_keys[ARM64_NCAPS]; extern struct static_key_false arm64_const_caps_ready; |