Commit e7ecad17 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Borislav Petkov
Browse files

x86/fpu: Rename fpu__clear_all() to fpu_flush_thread()



Make it clear what the function is about.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Reviewed-by: default avatarBorislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210623121455.827979263@linutronix.de
parent 37107113
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -29,12 +29,13 @@
extern int  fpu__restore_sig(void __user *buf, int ia32_frame);
extern void fpu__drop(struct fpu *fpu);
extern void fpu__clear_user_states(struct fpu *fpu);
extern void fpu__clear_all(struct fpu *fpu);
extern int  fpu__exception_code(struct fpu *fpu, int trap_nr);

extern void fpu_sync_fpstate(struct fpu *fpu);

/* Clone and exit operations */
extern int  fpu_clone(struct task_struct *dst);
extern void fpu_flush_thread(void);

/*
 * Boot time FPU initialization functions:
+2 −2
Original line number Diff line number Diff line
@@ -350,9 +350,9 @@ void fpu__clear_user_states(struct fpu *fpu)
	fpu__clear(fpu, true);
}

void fpu__clear_all(struct fpu *fpu)
void fpu_flush_thread(void)
{
	fpu__clear(fpu, false);
	fpu__clear(&current->thread.fpu, false);
}

/*
+1 −1
Original line number Diff line number Diff line
@@ -205,7 +205,7 @@ void flush_thread(void)
	flush_ptrace_hw_breakpoint(tsk);
	memset(tsk->thread.tls_array, 0, sizeof(tsk->thread.tls_array));

	fpu__clear_all(&tsk->thread.fpu);
	fpu_flush_thread();
}

void disable_TSC(void)