Skip to content

Commit 79367b7

Browse files
committed
drm/i915/pmu: Remove pointless synchronize_rcu() call
This is already done inside perf_pmu_unregister() - no need to do it before. Reviewed-by: Matt Roper <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Lucas De Marchi <[email protected]>
1 parent 6ba29f1 commit 79367b7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/gpu/drm/i915/i915_pmu.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,13 +1335,8 @@ void i915_pmu_unregister(struct drm_i915_private *i915)
13351335
if (!pmu->registered)
13361336
return;
13371337

1338-
/*
1339-
* "Disconnect" the PMU callbacks - since all are atomic synchronize_rcu
1340-
* ensures all currently executing ones will have exited before we
1341-
* proceed with unregistration.
1342-
*/
1338+
/* Disconnect the PMU callbacks */
13431339
pmu->registered = false;
1344-
synchronize_rcu();
13451340

13461341
hrtimer_cancel(&pmu->timer);
13471342

0 commit comments

Comments
 (0)