]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/fpu: Rename fpu_reset_fpregs() to fpu_reset_fpstate_regs()
authorChang S. Bae <chang.seok.bae@intel.com>
Wed, 16 Apr 2025 02:17:00 +0000 (19:17 -0700)
committerIngo Molnar <mingo@kernel.org>
Wed, 16 Apr 2025 08:01:03 +0000 (10:01 +0200)
commitde8304c319bc020ef79d109909ad40e944d82c82
tree83ca52a6ae7167ed6f698fb2211479d243b48e8c
parent70fe4a0266ef156f3a49071da0d9ea6af0f49c44
x86/fpu: Rename fpu_reset_fpregs() to fpu_reset_fpstate_regs()

The original function name came from an overly compressed form of
'fpstate_regs' by commit:

    e61d6310a0f8 ("x86/fpu: Reset permission and fpstate on exec()")

However, the term 'fpregs' typically refers to physical FPU registers. In
contrast, this function copies the init values to fpu->fpstate->regs, not
hardware registers.

Rename the function to better reflect what it actually does.

No functional change.

Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Link: https://lore.kernel.org/r/20250416021720.12305-11-chang.seok.bae@intel.com
arch/x86/kernel/fpu/core.c