[PATCH] arm64/sve: Remove redundant system_supports_sve() tests

Catalin Marinas catalin.marinas at arm.com
Tue Apr 13 12:49:34 BST 2021


On Mon, Apr 12, 2021 at 06:23:20PM +0100, Mark Brown wrote:
> 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.

It makes sense. The only advantage is if CONFIG_ARM64_SVE is disabled,
we avoid an extra check but with defconfig that's always on.

-- 
Catalin



More information about the linux-arm-kernel mailing list