x86/fpu: Rename fregs-related copy functions
authorThomas Gleixner <tglx@linutronix.de>
Wed, 23 Jun 2021 12:01:56 +0000 (14:01 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 23 Jun 2021 16:20:27 +0000 (18:20 +0200)
commit6fdc908cb56123591baa4259400cfb0787582b11
treec2e4a2b35bbdb7c87a38a24bee8a8a2b17ab07d7
parent872c65dbf669b3b471b3d8656391a6b4f736d22b
x86/fpu: Rename fregs-related copy functions

The function names for fnsave/fnrstor operations are horribly named and
a permanent source of confusion.

Rename:
copy_kernel_to_fregs() to frstor()
copy_fregs_to_user()   to fnsave_to_user_sigframe()
copy_user_to_fregs()   to frstor_from_user_sigframe()

so it's clear what these are doing. All these functions are really low
level wrappers around the equally named instructions, so mapping to the
documentation is just natural.

No functional change.

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