summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/fpu-internal.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2015-04-22 20:09:29 +0200
committerIngo Molnar <mingo@kernel.org>2015-05-19 15:47:21 +0200
commite102f30f4e22b7eb8f3dfbe7fec334cffb350fd8 (patch)
tree856e0743e1e0a8964827cebb56cafb10673ea78a /arch/x86/include/asm/fpu-internal.h
parent6522d783773d0d61f9f35cae890f8c11c4510d9a (diff)
downloadlinux-e102f30f4e22b7eb8f3dfbe7fec334cffb350fd8.tar.gz
linux-e102f30f4e22b7eb8f3dfbe7fec334cffb350fd8.tar.bz2
linux-e102f30f4e22b7eb8f3dfbe7fec334cffb350fd8.zip
x86/fpu: Move fpu_copy() to fpu/core.c
Move fpu_copy() where its only user is. Beyond readability this also speeds up compilation, as fpu-internal.h is included in over a dozen .c files. Reviewed-by: Borislav Petkov <bp@alien8.de> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/fpu-internal.h')
-rw-r--r--arch/x86/include/asm/fpu-internal.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/x86/include/asm/fpu-internal.h b/arch/x86/include/asm/fpu-internal.h
index 1e2b6c67b1f1..e180fb96dd0d 100644
--- a/arch/x86/include/asm/fpu-internal.h
+++ b/arch/x86/include/asm/fpu-internal.h
@@ -565,20 +565,6 @@ extern int fpstate_alloc(struct fpu *fpu);
extern void fpstate_free(struct fpu *fpu);
extern int fpu__copy(struct task_struct *dst, struct task_struct *src);
-static inline void fpu_copy(struct task_struct *dst, struct task_struct *src)
-{
- if (use_eager_fpu()) {
- memset(&dst->thread.fpu.state->xsave, 0, xstate_size);
- __save_fpu(dst);
- } else {
- struct fpu *dfpu = &dst->thread.fpu;
- struct fpu *sfpu = &src->thread.fpu;
-
- fpu__save(src);
- memcpy(dfpu->state, sfpu->state, xstate_size);
- }
-}
-
static inline unsigned long
alloc_mathframe(unsigned long sp, int ia32_frame, unsigned long *buf_fx,
unsigned long *size)