arm64/sve: Remove redundant system_supports_sve() tests
authorMark Brown <broonie@kernel.org>
Mon, 12 Apr 2021 17:23:20 +0000 (18:23 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 13 Apr 2021 11:51:33 +0000 (12:51 +0100)
commitef9c5d09797db874a29a97407c3ea3990210432b
tree43394a9a40028279aeca35e8d05bc4fbdfdf46a4
parentdf652a16a65735c228c88e5fb75a938614f1368b
arm64/sve: Remove redundant system_supports_sve() tests

Currently there are a number of places in the SVE code where we check both
system_supports_sve() and TIF_SVE. This is a bit redundant given that we
should never get into a situation where we have set TIF_SVE without having
SVE support and it is not clear that silently ignoring a mistakenly set
TIF_SVE flag is the most sensible error handling approach. For now let's
just drop the system_supports_sve() checks since this will at least reduce
overhead a little.

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