diff options
| author | Ingo Molnar <[email protected]> | 2015-05-27 12:22:29 +0200 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2015-05-27 14:11:27 +0200 |
| commit | 343763c3b0a4fa2d29f7c3ba405abf8771b90876 (patch) | |
| tree | 50a922f793d904270cdb61f9b7517710823911e3 /net/unix/sysctl_net_unix.c | |
| parent | 6a81d7eb330479c908dab3a47ac33cfca8af5a67 (diff) | |
x86/fpu: Optimize fpu__activate_fpstate_write()
fpu__activate_fpstate_write() is used before ptrace writes to the fpstate
context. Because it expects the modified registers to be reloaded on the
nexts context switch, it's only valid to call this function for stopped
child tasks.
- add a debugging check for this assumption
- remove code that only runs if the current task's FPU state needs
to be saved, which cannot occur here
- update comments to match the implementation
Cc: Andy Lutomirski <[email protected]>
Cc: Bobby Powers <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Fenghua Yu <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions