x86/fpu: Move fpu__write_begin() to regset
authorThomas Gleixner <tglx@linutronix.de>
Wed, 23 Jun 2021 12:01:47 +0000 (14:01 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 23 Jun 2021 15:49:47 +0000 (17:49 +0200)
commitdbb60ac764581e62f2116c5a6b8926ba3a872dd4
tree5c29cd3b0bd6958921648443252e4a74520c7c0b
parent5a32fac8dbe8adc08c10e2c8770c95aebfc627cd
x86/fpu: Move fpu__write_begin() to regset

The only usecase for fpu__write_begin is the set() callback of regset, so
the function is pointlessly global.

Move it to the regset code and rename it to fpu_force_restore() which is
exactly decribing what the function does.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210623121453.328652975@linutronix.de
arch/x86/include/asm/fpu/internal.h
arch/x86/kernel/fpu/core.c
arch/x86/kernel/fpu/regset.c