mirror of https://github.com/torvalds/linux.git
perf/arm: Remove driver-specific throttle support
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> Tested-by: Leo Yan <leo.yan@arm.com> Link: https://lore.kernel.org/r/20250520181644.2673067-9-kan.liang@linux.intel.com
This commit is contained in:
parent
6792f74e8d
commit
1507376528
|
|
@ -887,8 +887,7 @@ static irqreturn_t armv8pmu_handle_irq(struct arm_pmu *cpu_pmu)
|
||||||
* an irq_work which will be taken care of in the handling of
|
* an irq_work which will be taken care of in the handling of
|
||||||
* IPI_IRQ_WORK.
|
* IPI_IRQ_WORK.
|
||||||
*/
|
*/
|
||||||
if (perf_event_overflow(event, &data, regs))
|
perf_event_overflow(event, &data, regs);
|
||||||
cpu_pmu->disable(event);
|
|
||||||
}
|
}
|
||||||
armv8pmu_start(cpu_pmu);
|
armv8pmu_start(cpu_pmu);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -276,8 +276,7 @@ armv6pmu_handle_irq(struct arm_pmu *cpu_pmu)
|
||||||
if (!armpmu_event_set_period(event))
|
if (!armpmu_event_set_period(event))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (perf_event_overflow(event, &data, regs))
|
perf_event_overflow(event, &data, regs);
|
||||||
cpu_pmu->disable(event);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -930,8 +930,7 @@ static irqreturn_t armv7pmu_handle_irq(struct arm_pmu *cpu_pmu)
|
||||||
if (!armpmu_event_set_period(event))
|
if (!armpmu_event_set_period(event))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (perf_event_overflow(event, &data, regs))
|
perf_event_overflow(event, &data, regs);
|
||||||
cpu_pmu->disable(event);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -186,8 +186,7 @@ xscale1pmu_handle_irq(struct arm_pmu *cpu_pmu)
|
||||||
if (!armpmu_event_set_period(event))
|
if (!armpmu_event_set_period(event))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (perf_event_overflow(event, &data, regs))
|
perf_event_overflow(event, &data, regs);
|
||||||
cpu_pmu->disable(event);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
irq_work_run();
|
irq_work_run();
|
||||||
|
|
@ -519,8 +518,7 @@ xscale2pmu_handle_irq(struct arm_pmu *cpu_pmu)
|
||||||
if (!armpmu_event_set_period(event))
|
if (!armpmu_event_set_period(event))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (perf_event_overflow(event, &data, regs))
|
perf_event_overflow(event, &data, regs);
|
||||||
cpu_pmu->disable(event);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
irq_work_run();
|
irq_work_run();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue