]> git.baikalelectronics.ru Git - kernel.git/commit
perf_events, x86: Remove spurious counter reset from x86_pmu_enable()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 27 Jan 2010 22:07:49 +0000 (23:07 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 29 Jan 2010 08:01:49 +0000 (09:01 +0100)
commite5e1003d4bfd0bffc9004165c2ed514c41484965
tree0d1430eeb579c21365db515c89edbf8871e1ecd7
parent4159df6a3dc5dd4d1b241057ae49cc9b32f2d220
perf_events, x86: Remove spurious counter reset from x86_pmu_enable()

At enable time the counter might still have a ->idx pointing to
a previously occupied location that might now be taken by
another event. Resetting the counter at that location with data
from this event will destroy the other counter's count.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
LKML-Reference: <20100127221122.261477183@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event.c