summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2025-01-28 01:45:23 +0300
committerDave Hansen <dave.hansen@linux.intel.com>2025-02-11 01:45:59 +0300
commitccb7735a1ea22621f21c3133e4f5f3da5fe5f5b7 (patch)
treeb3764d81f45f2bcfcf64e0de43c6998b0bc61ab1 /tools/perf/scripts/python/task-analyzer.py
parenta64dcfb451e254085a7daee5fe51bf22959d52d3 (diff)
downloadlinux-ccb7735a1ea22621f21c3133e4f5f3da5fe5f5b7.tar.xz
x86/fpu: Fully optimize out WARN_ON_FPU()
Currently WARN_ON_FPU evaluates its argument even if CONFIG_X86_DEBUG_FPU is disabled, which adds unnecessary instructions to several functions, for example kernel_fpu_begin(). Fix this by using BUILD_BUG_ON_INVALID(x) in the no-debug case rather than (void)(x). Fixes: 83242c515881 ("x86/fpu: Make WARN_ON_FPU() more robust in the !CONFIG_X86_DEBUG_FPU case") Suggested-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Link: https://lore.kernel.org/all/20250127224523.94300-1-ebiggers%40kernel.org
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions