diff options
author | Oleg Nesterov <oleg@redhat.com> | 2015-02-06 23:01:58 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2015-02-19 13:12:40 +0300 |
commit | a9241ea5fd709fc935dade130f4e3b2612bbe9e3 (patch) | |
tree | 73b7221bea33cb1caed9c79fb30018aec5274ed4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bfa76d49576599a4b9f9b7a71f23d73d6dcff735 (diff) | |
download | linux-a9241ea5fd709fc935dade130f4e3b2612bbe9e3.tar.xz |
x86/fpu: Don't reset thread.fpu_counter
The "else" branch clears ->fpu_counter as a remnant of the lazy FPU
usage counting:
e07e23e1fd30 ("[PATCH] non lazy "sleazy" fpu implementation")
However, switch_fpu_prepare() does this now so that else branch is
superfluous.
If we do use_eager_fpu(), then this has no effect. Otherwise, if we
actually wanted to prevent fpu preload after the context switch we would
need to reset it unconditionally, even if __thread_has_fpu().
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Rik van Riel <riel@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1423252925-14451-2-git-send-email-riel@redhat.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions