]> git.baikalelectronics.ru Git - kernel.git/commit
x86/process: Clone FPU in copy_thread()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 15 Oct 2021 01:16:04 +0000 (03:16 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 20 Oct 2021 13:27:26 +0000 (15:27 +0200)
commit7671dde762ef8eda6f15df535206a62ed29e3608
tree1d87314e9523c5fe6d7c8e02b52b25f985871b99
parentd17fca7f9d06d1959eb0a80591ec8232e3152b21
x86/process: Clone FPU in copy_thread()

There is no reason to clone FPU in arch_dup_task_struct(). Quite the
contrary - it prevents optimizations. Move it to copy_thread().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211015011538.780714235@linutronix.de
arch/x86/kernel/process.c