diff --git a/kernel/events/core.c b/kernel/events/core.c index 0dd284509aa7c030306704d48d82644cffb927c7..2f835dcea703f3735026b49319a1dc2426914da9 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -7865,8 +7865,8 @@ __perf_event_account_interrupt(struct perf_event *event, int throttle) hwc->interrupts = 1; } else { hwc->interrupts++; - if (unlikely(throttle - && hwc->interrupts >= max_samples_per_tick)) { + if (unlikely(throttle && + hwc->interrupts > max_samples_per_tick)) { __this_cpu_inc(perf_throttled_count); tick_dep_set_cpu(smp_processor_id(), TICK_DEP_BIT_PERF_EVENTS); hwc->interrupts = MAX_INTERRUPTS;