diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-09-23 15:00:02 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-09-24 13:04:34 +0200 |
commit | 6cf4edbe0526db311a28734609da888fdfcb3604 (patch) | |
tree | ae414faeb5a0e91376697a3b54719cc74374dc43 /arch/x86/platform | |
parent | f1c8cd0176078c7bcafdc89cac447cab672a0b5e (diff) | |
download | linux-6cf4edbe0526db311a28734609da888fdfcb3604.tar.bz2 |
x86/fpu: Decouple fpregs_activate()/fpregs_deactivate() from fpu->fpregs_active
The fpregs_activate()/fpregs_deactivate() are currently called in such a pattern:
if (!fpu->fpregs_active)
fpregs_activate(fpu);
...
if (fpu->fpregs_active)
fpregs_deactivate(fpu);
But note that it's actually safe to call them without checking the flag first.
This further decouples the fpu->fpregs_active flag from actual FPU logic.
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Eric Biggers <ebiggers3@gmail.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Yu-cheng Yu <yu-cheng.yu@intel.com>
Link: http://lkml.kernel.org/r/20170923130016.21448-20-mingo@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/platform')
0 files changed, 0 insertions, 0 deletions