]> 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)
commit0a635080016be0b06e011953aee1fe52edccfe3f
tree27bf7075e00b12f11465a0b03f9bb4dad4cb4f27
parentb1a885c0f40e89a4fd0f041736592b4ab46bfe8a
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