Commit 79367b7a authored by Lucas De Marchi's avatar Lucas De Marchi
Browse files

drm/i915/pmu: Remove pointless synchronize_rcu() call



This is already done inside perf_pmu_unregister() - no need to do it
before.

Reviewed-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241104213512.2314930-5-lucas.demarchi@intel.com


Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
parent 6ba29f13
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -1335,13 +1335,8 @@ void i915_pmu_unregister(struct drm_i915_private *i915)
	if (!pmu->registered)
		return;

	/*
	 * "Disconnect" the PMU callbacks - since all are atomic synchronize_rcu
	 * ensures all currently executing ones will have exited before we
	 * proceed with unregistration.
	 */
	/* Disconnect the PMU callbacks */
	pmu->registered = false;
	synchronize_rcu();

	hrtimer_cancel(&pmu->timer);