x86/fpu: Fix fpu__activate_fpstate_read() and update comments
authorIngo Molnar <[email protected]>
Sat, 23 Sep 2017 13:00:10 +0000 (15:00 +0200)
committerIngo Molnar <[email protected]>
Tue, 26 Sep 2017 07:41:09 +0000 (09:41 +0200)
commit4618e90965f272fe522f2af2523a60d0d4bc78f3
tree22ca3f235053f90f117ff401f9622c4896ce08b6
parentd5c8028b4788f62b31fb79a331b3ad3e041fa366
x86/fpu: Fix fpu__activate_fpstate_read() and update comments

fpu__activate_fpstate_read() can be called for the current task
when coredumping - or for stopped tasks when ptrace-ing.

Implement this properly in the code and update the comments.

This also fixes an incorrect (but harmless) warning introduced by
one of the earlier patches.

Cc: Andrew Morton <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Eric Biggers <[email protected]>
Cc: Fenghua Yu <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Yu-cheng Yu <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/fpu/core.c