Skip to content

Commit 8410186

Browse files
brooniewilldeacon
authored andcommitted
arm64/fpsimd: Remove spurious check for SVE support
There is no need to check for SVE support when changing vector lengths, even if the system is SME only we still need SVE storage for the streaming SVE state. Fixes: d4d5be9 ("arm64/fpsimd: Ensure SME storage is allocated after SVE VL changes") Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20240115-arm64-sve-enabled-check-v1-1-a26360b00f6d@kernel.org Signed-off-by: Will Deacon <will@kernel.org>
1 parent b7c510d commit 8410186

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

arch/arm64/kernel/fpsimd.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -898,10 +898,8 @@ int vec_set_vector_length(struct task_struct *task, enum vec_type type,
898898
* allocate SVE now in case it is needed for use in streaming
899899
* mode.
900900
*/
901-
if (system_supports_sve()) {
902-
sve_free(task);
903-
sve_alloc(task, true);
904-
}
901+
sve_free(task);
902+
sve_alloc(task, true);
905903

906904
if (free_sme)
907905
sme_free(task);

0 commit comments

Comments
 (0)