File tree Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -281,23 +281,6 @@ static bool have_cpu_fpsimd_context(void)
281
281
return !preemptible () && __this_cpu_read (fpsimd_context_busy );
282
282
}
283
283
284
- /*
285
- * Call __sve_free() directly only if you know task can't be scheduled
286
- * or preempted.
287
- */
288
- static void __sve_free (struct task_struct * task )
289
- {
290
- kfree (task -> thread .sve_state );
291
- task -> thread .sve_state = NULL ;
292
- }
293
-
294
- static void sve_free (struct task_struct * task )
295
- {
296
- WARN_ON (test_tsk_thread_flag (task , TIF_SVE ));
297
-
298
- __sve_free (task );
299
- }
300
-
301
284
unsigned int task_get_vl (const struct task_struct * task , enum vec_type type )
302
285
{
303
286
return task -> thread .vl [type ];
@@ -690,6 +673,22 @@ static void sve_to_fpsimd(struct task_struct *task)
690
673
}
691
674
692
675
#ifdef CONFIG_ARM64_SVE
676
+ /*
677
+ * Call __sve_free() directly only if you know task can't be scheduled
678
+ * or preempted.
679
+ */
680
+ static void __sve_free (struct task_struct * task )
681
+ {
682
+ kfree (task -> thread .sve_state );
683
+ task -> thread .sve_state = NULL ;
684
+ }
685
+
686
+ static void sve_free (struct task_struct * task )
687
+ {
688
+ WARN_ON (test_tsk_thread_flag (task , TIF_SVE ));
689
+
690
+ __sve_free (task );
691
+ }
693
692
694
693
/*
695
694
* Return how many bytes of memory are required to store the full SVE
You can’t perform that action at this time.
0 commit comments