File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -76,11 +76,9 @@ static inline void unlazy_fpu(struct task_struct *tsk)
76
76
preempt_enable ();
77
77
}
78
78
79
- static inline void exit_fpu (void )
79
+ static inline void exit_fpu (struct task_struct * tsk )
80
80
{
81
81
#ifdef CONFIG_LAZY_SAVE_FPU
82
- struct task_struct * tsk = current ;
83
-
84
82
preempt_disable ();
85
83
if (fpu_state_owner == tsk )
86
84
fpu_state_owner = NULL ;
@@ -123,7 +121,7 @@ static inline void fpu_init_state(void) {}
123
121
static inline void fpu_save (struct fpu_state_struct * s ) {}
124
122
static inline void fpu_kill_state (struct task_struct * tsk ) {}
125
123
static inline void unlazy_fpu (struct task_struct * tsk ) {}
126
- static inline void exit_fpu (void ) {}
124
+ static inline void exit_fpu (struct task_struct * tsk ) {}
127
125
static inline void flush_fpu (void ) {}
128
126
static inline int fpu_setup_sigcontext (struct fpucontext * buf ) { return 0 ; }
129
127
static inline int fpu_restore_sigcontext (struct fpucontext * buf ) { return 0 ; }
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ void show_regs(struct pt_regs *regs)
105
105
*/
106
106
void exit_thread (void )
107
107
{
108
- exit_fpu ();
108
+ exit_fpu (current );
109
109
}
110
110
111
111
void flush_thread (void )
You can’t perform that action at this time.
0 commit comments