x86/fpu/regset: Move fpu__read_begin() into regset
authorThomas Gleixner <tglx@linutronix.de>
Wed, 23 Jun 2021 12:01:46 +0000 (14:01 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 23 Jun 2021 15:49:47 +0000 (17:49 +0200)
commit5a32fac8dbe8adc08c10e2c8770c95aebfc627cd
treec2050a16b5522c3a2638bd136b2437022c033235
parentafac9e894364418731d1d7e66c1118b31fd130e8
x86/fpu/regset: Move fpu__read_begin() into regset

The function can only be used from the regset get() callbacks safely. So
there is no reason to have it globally exposed.

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.234942936@linutronix.de
arch/x86/include/asm/fpu/internal.h
arch/x86/kernel/fpu/core.c
arch/x86/kernel/fpu/regset.c