File tree Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,6 @@ struct thread_struct {
171
171
struct debug_info debug ; /* debugging */
172
172
173
173
struct user_fpsimd_state kernel_fpsimd_state ;
174
- unsigned int kernel_fpsimd_cpu ;
175
174
#ifdef CONFIG_ARM64_PTR_AUTH
176
175
struct ptrauth_keys_user keys_user ;
177
176
#ifdef CONFIG_ARM64_PTR_AUTH_KERNEL
Original file line number Diff line number Diff line change @@ -1509,30 +1509,12 @@ void do_fpsimd_exc(unsigned long esr, struct pt_regs *regs)
1509
1509
1510
1510
static void fpsimd_load_kernel_state (struct task_struct * task )
1511
1511
{
1512
- struct cpu_fp_state * last = this_cpu_ptr (& fpsimd_last_state );
1513
-
1514
- /*
1515
- * Elide the load if this CPU holds the most recent kernel mode
1516
- * FPSIMD context of the current task.
1517
- */
1518
- if (last -> st == & task -> thread .kernel_fpsimd_state &&
1519
- task -> thread .kernel_fpsimd_cpu == smp_processor_id ())
1520
- return ;
1521
-
1522
1512
fpsimd_load_state (& task -> thread .kernel_fpsimd_state );
1523
1513
}
1524
1514
1525
1515
static void fpsimd_save_kernel_state (struct task_struct * task )
1526
1516
{
1527
- struct cpu_fp_state cpu_fp_state = {
1528
- .st = & task -> thread .kernel_fpsimd_state ,
1529
- .to_save = FP_STATE_FPSIMD ,
1530
- };
1531
-
1532
1517
fpsimd_save_state (& task -> thread .kernel_fpsimd_state );
1533
- fpsimd_bind_state_to_cpu (& cpu_fp_state );
1534
-
1535
- task -> thread .kernel_fpsimd_cpu = smp_processor_id ();
1536
1518
}
1537
1519
1538
1520
void fpsimd_thread_switch (struct task_struct * next )
You can’t perform that action at this time.
0 commit comments