]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
alpha/perf: Remove driver-specific throttle support
authorKan Liang <kan.liang@linux.intel.com>
Tue, 20 May 2025 18:16:38 +0000 (11:16 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 21 May 2025 11:57:45 +0000 (13:57 +0200)
The throttle support has been added in the generic code. Remove
the driver-specific throttle support.

Besides the throttle, perf_event_overflow may return true because of
event_limit. It already does an inatomic event disable. The pmu->stop
is not required either.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250520181644.2673067-11-kan.liang@linux.intel.com
arch/alpha/kernel/perf_event.c

index 1f0eb4f25c0ff5380b5aa01641c35eb7767c134e..a3eaab094ece021038ddf309bfb4cf3b9bfa3b60 100644 (file)
@@ -852,14 +852,9 @@ static void alpha_perf_event_irq_handler(unsigned long la_ptr,
        alpha_perf_event_update(event, hwc, idx, alpha_pmu->pmc_max_period[idx]+1);
        perf_sample_data_init(&data, 0, hwc->last_period);
 
-       if (alpha_perf_event_set_period(event, hwc, idx)) {
-               if (perf_event_overflow(event, &data, regs)) {
-                       /* Interrupts coming too quickly; "throttle" the
-                        * counter, i.e., disable it for a little while.
-                        */
-                       alpha_pmu_stop(event, 0);
-               }
-       }
+       if (alpha_perf_event_set_period(event, hwc, idx))
+               perf_event_overflow(event, &data, regs);
+
        wrperfmon(PERFMON_CMD_ENABLE, cpuc->idx_mask);
 
        return;