x86/fpu: Factor out fpu__copy()
authorIngo Molnar <mingo@kernel.org>
Wed, 22 Apr 2015 13:47:05 +0000 (15:47 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:19 +0000 (15:47 +0200)
commita752b53d9dcbae28a3a22b5577f0571acf53d5aa
tree875b53eb3ec80ef232326065a7c617d70a2da218
parent8ffb53ab986ccb4421b1060182c6e084edd7b9d8
x86/fpu: Factor out fpu__copy()

Introduce fpu__copy() and use it in arch_dup_task_struct(),
thus moving another chunk of FPU logic to fpu/core.c.

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>
arch/x86/include/asm/fpu-internal.h
arch/x86/kernel/fpu/core.c
arch/x86/kernel/process.c