[PATCH 0/4] drm/i915/pmu: Refactors

Lucas De Marchi lucas.demarchi at intel.com
Mon Nov 4 21:35:08 UTC 2024


Extract refactors from https://patchwork.freedesktop.org/series/136362/
to land them independently. With recent developments in the perf side,
the fixes won't be needed anymore as perf_pmu_unregister() should be
able to do the right thing. See https://lore.kernel.org/all/20241104133909.669111662@infradead.org/

With that, we can drop a few patches, keeping just the generic
refactors my series included. And in future, with a fixed
perf_pmu_unregister() we may simplify our checks by
pmu->registered too.

Lucas De Marchi (4):
  drm/i915/pmu: Rename cpuhp_slot to cpuhp_state
  drm/i915/pmu: Stop setting event_init to NULL
  drm/i915/pmu: Replace closed with registered
  drm/i915/pmu: Remove pointless synchronize_rcu() call

 drivers/gpu/drm/i915/i915_pmu.c | 50 +++++++++++++--------------------
 drivers/gpu/drm/i915/i915_pmu.h |  4 +--
 2 files changed, 22 insertions(+), 32 deletions(-)

-- 
2.47.0



More information about the Intel-gfx mailing list