x86/fpu: Move fpregs_restore_userregs() to core
authorThomas Gleixner <tglx@linutronix.de>
Fri, 15 Oct 2021 01:16:30 +0000 (03:16 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 20 Oct 2021 13:27:28 +0000 (15:27 +0200)
commit9848fb96839bfd6ad4c00748842ccfd5bd3b0346
tree406c5e4289e68531b02244e9bc4acc7e9abe4d95
parentcdcb6fa14e1499ff2b2a3f3e0938c7b3b7ef2cd6
x86/fpu: Move fpregs_restore_userregs() to core

Only used internally in the FPU core code.

While at it, convert to the percpu accessors which verify preemption is
disabled.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211015011539.686806639@linutronix.de
arch/x86/include/asm/fpu/internal.h
arch/x86/kernel/fpu/context.h [new file with mode: 0644]
arch/x86/kernel/fpu/core.c
arch/x86/kernel/fpu/regset.c
arch/x86/kernel/fpu/signal.c