@@ -337,7 +337,7 @@ static void fpsimd_save(void)
337
337
* If things go wrong there's a bug somewhere, but try to fall back to a
338
338
* safe choice.
339
339
*/
340
- static unsigned int find_supported_vector_length (unsigned int vl )
340
+ static unsigned int find_supported_sve_vector_length (unsigned int vl )
341
341
{
342
342
int bit ;
343
343
int max_vl = sve_max_vl ;
@@ -379,7 +379,7 @@ static int sve_proc_do_default_vl(struct ctl_table *table, int write,
379
379
if (!sve_vl_valid (vl ))
380
380
return - EINVAL ;
381
381
382
- set_sve_default_vl (find_supported_vector_length (vl ));
382
+ set_sve_default_vl (find_supported_sve_vector_length (vl ));
383
383
return 0 ;
384
384
}
385
385
@@ -598,7 +598,7 @@ int sve_set_vector_length(struct task_struct *task,
598
598
if (vl > SVE_VL_ARCH_MAX )
599
599
vl = SVE_VL_ARCH_MAX ;
600
600
601
- vl = find_supported_vector_length (vl );
601
+ vl = find_supported_sve_vector_length (vl );
602
602
603
603
if (flags & (PR_SVE_VL_INHERIT |
604
604
PR_SVE_SET_VL_ONEXEC ))
@@ -873,14 +873,14 @@ void __init sve_setup(void)
873
873
* Sanity-check that the max VL we determined through CPU features
874
874
* corresponds properly to sve_vq_map. If not, do our best:
875
875
*/
876
- if (WARN_ON (sve_max_vl != find_supported_vector_length (sve_max_vl )))
877
- sve_max_vl = find_supported_vector_length (sve_max_vl );
876
+ if (WARN_ON (sve_max_vl != find_supported_sve_vector_length (sve_max_vl )))
877
+ sve_max_vl = find_supported_sve_vector_length (sve_max_vl );
878
878
879
879
/*
880
880
* For the default VL, pick the maximum supported value <= 64.
881
881
* VL == 64 is guaranteed not to grow the signal frame.
882
882
*/
883
- set_sve_default_vl (find_supported_vector_length (64 ));
883
+ set_sve_default_vl (find_supported_sve_vector_length (64 ));
884
884
885
885
bitmap_andnot (tmp_map , sve_vq_partial_map , sve_vq_map ,
886
886
SVE_VQ_MAX );
@@ -1066,7 +1066,7 @@ void fpsimd_flush_thread(void)
1066
1066
if (WARN_ON (!sve_vl_valid (vl )))
1067
1067
vl = SVE_VL_MIN ;
1068
1068
1069
- supported_vl = find_supported_vector_length (vl );
1069
+ supported_vl = find_supported_sve_vector_length (vl );
1070
1070
if (WARN_ON (supported_vl != vl ))
1071
1071
vl = supported_vl ;
1072
1072
0 commit comments