Skip to content

Commit

Permalink
perf_events, x86: Remove superflous MSR writes
Browse files Browse the repository at this point in the history
We re-program the event control register every time we reset the count,
this appears to be superflous, hence remove it.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arjan van de Ven <arjan@linux.intel.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Feb 26, 2010
1 parent 6e37738 commit 6667661
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/x86/kernel/cpu/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6667661

Please sign in to comment.