diff options
author | Peter Zijlstra <peterz@infradead.org> | 2022-05-10 21:22:04 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-05-18 00:08:25 +0200 |
commit | 3c27b0c6ea48bc61492a138c410e262735d660ab (patch) | |
tree | facfef5bda5b0cf88f172f5dd25309f1964e8ad9 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
parent | bc469ddf67154a4840267132e87ce0d8b72d4952 (diff) |
perf/x86/amd: Fix AMD BRS period adjustment
There's two problems with the current amd_brs_adjust_period() code:
- it isn't in fact AMD specific and wil always adjust the period;
- it adjusts the period, while it should only adjust the event count,
resulting in repoting a short period.
Fix this by using x86_pmu.limit_period, this makes it specific to the
AMD BRS case and ensures only the event count is adjusted while the
reported period is unmodified.
Fixes: ba2fe7500845 ("perf/x86/amd: Add AMD branch sampling period adjustment")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions