diff options
author | Mark Rutland <[email protected]> | 2023-06-07 17:48:46 +0100 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2023-06-07 17:57:48 +0100 |
commit | 7dae5f086fceba6b0a4735b63dbcb4795f353c39 (patch) | |
tree | be521829790a45931561f49a7166d766fb1a0c71 /arch/arm64/kernel/traps.c | |
parent | 1c8ae42975bd708f6c8c73d011025868b23076b3 (diff) |
arm64: cpufeature: fold cpus_set_cap() into update_cpu_capabilities()
We only use cpus_set_cap() in update_cpu_capabilities(), where we
open-code an analgous update to boot_cpucaps.
Due to the way the cpucap_ptrs[] array is initialized, we know that the
capability number cannot be greater than or equal to ARM64_NCAPS, so the
warning is superfluous.
Fold cpus_set_cap() into update_cpu_capabilities(), matching what we do
for the boot_cpucaps, and making the relationship between the two a bit
clearer.
There should be no functional change as a result of this patch.
Signed-off-by: Mark Rutland <[email protected]>
Reviewed-by: Suzuki K Poulose <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Will Deacon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'arch/arm64/kernel/traps.c')
0 files changed, 0 insertions, 0 deletions