arm64/sve: Make sysctl interface for SVE reusable by SME
authorMark Brown <broonie@kernel.org>
Fri, 10 Dec 2021 18:40:57 +0000 (18:40 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 14 Dec 2021 18:33:44 +0000 (18:33 +0000)
commit97bcbee404e386195614b58e98ab2e7eddd89a5c
tree27bf7075e00b12f11465a0b03f9bb4dad4cb4f27
parentd58071a8a76d779eedab38033ae4c821c30295a5
arm64/sve: Make sysctl interface for SVE reusable by SME

The vector length configuration for SME is very similar to that for SVE
so in order to allow reuse refactor the SVE configuration so that it takes
the vector type from the struct ctl_table. Since there's no dedicated space
for this we repurpose the extra1 field to store the vector type, this is
otherwise unused for integer sysctls.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20211210184133.320748-2-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/fpsimd.c