]> git.ipfire.org Git - thirdparty/linux.git/commit
arm64: Remove cpus_have_const_cap()
authorMark Rutland <mark.rutland@arm.com>
Mon, 16 Oct 2023 10:25:01 +0000 (11:25 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 16 Oct 2023 13:17:07 +0000 (14:17 +0100)
commite8d4006dc24e66105444715d6d5daa244aa2bdec
tree306ce297759b247a979d831fc1decb22a38a74d2
parent47759eca76d1807923fffec6421ba8014432c191
arm64: Remove cpus_have_const_cap()

There are no longer any users of cpus_have_const_cap(), and therefore it
can be removed.

Remove cpus_have_const_cap(). At the same time, remove
__cpus_have_const_cap(), as this is a trivial wrapper of
alternative_has_cap_unlikely(), which can be used directly instead.

The comment for __system_matches_cap() is updated to no longer refer to
cpus_have_const_cap(). As we have a number of ways to check the cpucaps,
the specific suggestions are removed.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Kristina Martsenko <kristina.martsenko@arm.com>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/cpufeature.h
arch/arm64/kernel/cpufeature.c