]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/fpu: Push 'fpu' pointer calculation into the fpu__drop() call
authorIngo Molnar <mingo@kernel.org>
Wed, 9 Apr 2025 21:11:24 +0000 (23:11 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 14 Apr 2025 06:18:29 +0000 (08:18 +0200)
commitec2227e03a46a162f2721917262adc553b212e2d
treebb7d3d815272d3b911311ff5baa09c06ed7489a7
parent55bc30f2e34dcc17a370d1f6c1c992be107c4502
x86/fpu: Push 'fpu' pointer calculation into the fpu__drop() call

This encapsulates the fpu__drop() functionality better, and it
will also enable other changes that want to check a task for
PF_KTHREAD before calling x86_task_fpu().

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Chang S. Bae <chang.seok.bae@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250409211127.3544993-6-mingo@kernel.org
arch/x86/include/asm/fpu/sched.h
arch/x86/kernel/fpu/core.c
arch/x86/kernel/process.c