]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf/x86/intel/uncore: Use HRTIMER_MODE_HARD for detecting overflows
authorSandipan Das <sandipan.das@amd.com>
Fri, 18 Apr 2025 03:43:00 +0000 (09:13 +0530)
committerIngo Molnar <mingo@kernel.org>
Fri, 18 Apr 2025 08:35:33 +0000 (10:35 +0200)
commit05c9b0cbe4b822c42382d27e3f73918600594882
treed36d9cc642540ab985c47cb500da17c4f43a969c
parent4f81cc2d1bf91a49d33eb6578b58db2518deef01
perf/x86/intel/uncore: Use HRTIMER_MODE_HARD for detecting overflows

hrtimer handlers can be deferred to softirq context and affect timely
detection of counter overflows. Hence switch to HRTIMER_MODE_HARD.

Disabling and re-enabling IRQs in the hrtimer handler is not required
as pmu->start() and pmu->stop() can no longer intervene while updating
event->hw.prev_count.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Sandipan Das <sandipan.das@amd.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/0ad4698465077225769e8edd5b2c7e8f48f636d5.1744906694.git.sandipan.das@amd.com
arch/x86/events/intel/uncore.c