diff options
| author | Rik van Riel <[email protected]> | 2024-11-09 00:27:50 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2024-11-13 02:42:41 +0000 |
| commit | 7e33001b8b9a78062679e0fdf5b0842a49063135 (patch) | |
| tree | a4d43a057f795ab7c76358c7a80ff5a57b1526c2 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | Merge tag 'v6.12-rc7' into x86/mm, to pick up fixes before applying new patches (diff) | |
| download | kernel-7e33001b8b9a78062679e0fdf5b0842a49063135.tar.gz kernel-7e33001b8b9a78062679e0fdf5b0842a49063135.zip | |
x86/mm/tlb: Put cpumask_test_cpu() check in switch_mm_irqs_off() under CONFIG_DEBUG_VM
On a web server workload, the cpumask_test_cpu() inside the
WARN_ON_ONCE() in the 'prev == next branch' takes about 17% of
all the CPU time of switch_mm_irqs_off().
On a large fleet, this WARN_ON_ONCE() has not fired in at least
a month, possibly never.
Move this test under CONFIG_DEBUG_VM so it does not get compiled
in production kernels.
Signed-off-by: Rik van Riel <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
