On Thu, 30 Sep 2021 19:11:16 +0100 Mark Brown broonie@kernel.org wrote:
In preparation for adding SME support update the bulk of the implementation for the vector length configuration prctl() calls to be independent of vector type.
Signed-off-by: Mark Brown broonie@kernel.org
And let the trivial continue (which is just a reflection of the fact I don't have enough of a grasp on this to find anything substantial - or there is nothing there to find :)
...
/*
* Clamp to the maximum vector length that VL-agnostic SVE code can
* work with. A flag may be assigned in the future to allow setting
* of larger vector lengths without confusing older software.
* Clamp to the maximum vector length that VL-agnostic code
* can work with. A flag may be assigned in the future to
* allow setting of larger vector lengths without confusing
* older software.
Why the oddly short wrapping at sub 70 chars?
*/
- if (vl > SVE_VL_ARCH_MAX)
vl = SVE_VL_ARCH_MAX;
- if (vl > VL_ARCH_MAX)
vl = VL_ARCH_MAX;