[PATCH 37/37] arm64: Remove cpus_have_const_cap()

Kristina Martsenko kristina.martsenko at arm.com
Tue Oct 3 10:20:25 PDT 2023


On 19/09/2023 10:28, Mark Rutland wrote:
> 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.

Nit: The comment above __system_matches_cap() still mentions
cpus_have_const_cap():

/*
 * This helper function is used in a narrow window when,
 * - The system wide safe registers are set with all the SMP CPUs and,
 * - The SYSTEM_FEATURE system_cpucaps may not have been set.
 * In all other cases cpus_have_{const_}cap() should be used.
 */

Kristina



More information about the linux-arm-kernel mailing list