]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2506241e7f7ca570b8c5c89d0775b67ae1fd8bc3
tree27bf7075e00b12f11465a0b03f9bb4dad4cb4f27
parentff04131966d1a79c1b3cf26997a8e7d1433f1b7d
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