linux_dsm_epyc7002/arch/x86/kernel/fpu
Ingo Molnar c5bedc6847 x86/fpu: Get rid of PF_USED_MATH usage, convert it to fpu->fpstate_active
Introduce a simple fpu->fpstate_active flag in the fpu context data structure
and use that instead of PF_USED_MATH in task->flags.

Testing for this flag byte should be slightly more efficient than
testing a bit in a bitmask, but the main advantage is that most
FPU functions can now be performed on a 'struct fpu' alone, they
don't need access to 'struct task_struct' anymore.

There's a slight linecount increase, mostly due to the 'fpu' local
variables and due to extra comments. The local variables will go away
once we move most of the FPU methods to pure 'struct fpu' parameters.

Reviewed-by: Borislav Petkov <bp@alien8.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Fenghua Yu <fenghua.yu@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>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2015-05-19 15:47:25 +02:00
..
core.c x86/fpu: Get rid of PF_USED_MATH usage, convert it to fpu->fpstate_active 2015-05-19 15:47:25 +02:00
init.c x86/fpu: Factor out the FPU bug detection code into fpu__init_check_bugs() 2015-05-19 15:47:18 +02:00
Makefile x86/fpu: Split out the boot time FPU init code into fpu/init.c 2015-05-19 15:47:16 +02:00
xsave.c x86/fpu: Get rid of PF_USED_MATH usage, convert it to fpu->fpstate_active 2015-05-19 15:47:25 +02:00