mbox series

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

Message ID 20241104213512.2314930-1-lucas.demarchi@intel.com (mailing list archive)
Headers show
Series drm/i915/pmu: Refactors | expand

Message

Lucas De Marchi Nov. 4, 2024, 9:35 p.m. UTC
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(-)