mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 06:30:20 -04:00
drm/i915/pmu: Remove i915_pmu_event_event_idx()
perf event already has a default function that returns 0, no need to override with the same thing. Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250113183329.3138138-1-lucas.demarchi@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
This commit is contained in:
@@ -891,11 +891,6 @@ static void i915_pmu_event_del(struct perf_event *event, int flags)
|
||||
i915_pmu_event_stop(event, PERF_EF_UPDATE);
|
||||
}
|
||||
|
||||
static int i915_pmu_event_event_idx(struct perf_event *event)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct i915_str_attribute {
|
||||
struct device_attribute attr;
|
||||
const char *str;
|
||||
@@ -1301,7 +1296,6 @@ void i915_pmu_register(struct drm_i915_private *i915)
|
||||
pmu->base.start = i915_pmu_event_start;
|
||||
pmu->base.stop = i915_pmu_event_stop;
|
||||
pmu->base.read = i915_pmu_event_read;
|
||||
pmu->base.event_idx = i915_pmu_event_event_idx;
|
||||
|
||||
ret = perf_pmu_register(&pmu->base, pmu->name, -1);
|
||||
if (ret)
|
||||
|
||||
Reference in New Issue
Block a user