diff options
| author | Peter Zijlstra <[email protected]> | 2010-03-06 13:24:58 +0100 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2010-03-10 13:22:35 +0100 |
| commit | f3d46b2e6fa57547f9884330798792afc83f4b04 (patch) | |
| tree | 1c695a1706daf6ef67c940c20a558fb7b9acbfb7 /include/linux/timerqueue.h | |
| parent | 19925ce778f9fc371b9607625de3bff04c60121e (diff) | |
perf, x86: Fix double enable calls
hw_perf_enable() would enable already enabled events.
This causes problems with code that assumes that ->enable/->disable calls
are balanced (like the LBR code does).
What happens is that events that were already running and left in place
would get enabled again.
Avoid this by only enabling new events that match their previous
assignment.
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions