arm64/signal: Clean up SVE/SME feature checking inconsistency
authorMark Brown <broonie@kernel.org>
Fri, 24 Jun 2022 17:21:08 +0000 (18:21 +0100)
committerWill Deacon <will@kernel.org>
Mon, 27 Jun 2022 09:28:12 +0000 (10:28 +0100)
commitdf07443f477a7ebd36c2f21705419979b9865c9f
tree0d013eba6dbfcd669065afd26b5c399db8ab7dbf
parentd69d564964872f52c4a8f0db172d842eaf3b84cf
arm64/signal: Clean up SVE/SME feature checking inconsistency

Currently when restoring signal state we check to see if SVE is supported
in restore_sigframe() but check to see if SVE is supported inside
restore_sve_fpsimd_context(). This makes no real difference since SVE is
always supported in systems with SME but looks a bit untidy and makes
things slightly harder to follow, move the SVE check next to the SME one
in restore_sve_fpsimd_context().

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220624172108.555000-1-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/signal.c