|
@@ -467,12 +467,6 @@ void intel_pmu_lbr_del(struct perf_event *event)
|
|
cpuc->lbr_users--;
|
|
cpuc->lbr_users--;
|
|
WARN_ON_ONCE(cpuc->lbr_users < 0);
|
|
WARN_ON_ONCE(cpuc->lbr_users < 0);
|
|
perf_sched_cb_dec(event->ctx->pmu);
|
|
perf_sched_cb_dec(event->ctx->pmu);
|
|
-
|
|
|
|
- if (cpuc->enabled && !cpuc->lbr_users) {
|
|
|
|
- __intel_pmu_lbr_disable();
|
|
|
|
- /* avoid stale pointer */
|
|
|
|
- cpuc->lbr_context = NULL;
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
void intel_pmu_lbr_enable_all(bool pmi)
|
|
void intel_pmu_lbr_enable_all(bool pmi)
|