diff options
author | 2025-05-03 16:38:56 +0200 | |
---|---|---|
committer | 2025-05-04 10:29:25 +0200 | |
commit | 016a2e6f8ae5ed544ba8fb2b6d78f64ddfd9d01b (patch) | |
tree | 690053c7f761f4cf72c2478e824377916043aad2 /scripts/gdb/linux/utils.py | |
parent | x86/fpu: Always use memcpy_and_pad() in arch_dup_task_struct() (diff) | |
download | linux-rng-016a2e6f8ae5ed544ba8fb2b6d78f64ddfd9d01b.tar.xz linux-rng-016a2e6f8ae5ed544ba8fb2b6d78f64ddfd9d01b.zip |
x86/fpu: Check TIF_NEED_FPU_LOAD instead of PF_KTHREAD|PF_USER_WORKER in fpu__drop()
PF_KTHREAD|PF_USER_WORKER tasks should never clear TIF_NEED_FPU_LOAD,
so the TIF_NEED_FPU_LOAD check should equally filter them out.
And this way an exiting userspace task can avoid the unnecessary "fwait"
if it does context_switch() at least once on its way to exit_thread().
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Chang S . Bae <chang.seok.bae@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250503143856.GA9009@redhat.com
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions