]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit39ccf44620f469360a6af8d3a8e9cfcd869885b2
tree406c5e4289e68531b02244e9bc4acc7e9abe4d95
parent9613896be74e193cd5390ae50ea98a2cdb35c68f
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