Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6667661d authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar
Browse files

perf_events, x86: Remove superflous MSR writes



We re-program the event control register every time we reset the count,
this appears to be superflous, hence remove it.

Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arjan van de Ven <arjan@linux.intel.com>
LKML-Reference: <new-submission>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 6e37738a
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -2009,9 +2009,6 @@ static int intel_pmu_save_and_restart(struct perf_event *event)
	x86_perf_event_update(event, hwc, idx);
	ret = x86_perf_event_set_period(event, hwc, idx);

	if (event->state == PERF_EVENT_STATE_ACTIVE)
		intel_pmu_enable_event(hwc, idx);

	return ret;
}