aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2010-03-06 13:20:40 +0100
committerIngo Molnar <[email protected]>2010-03-10 13:22:33 +0100
commit19925ce778f9fc371b9607625de3bff04c60121e (patch)
tree727f1c39252fd99e7f58d9355b19d49578f5cad6 /scripts/patch-kernel
parent356e1f2e0ace2d4b100c8eda9d49b709e8323da5 (diff)
perf, x86: Fix double disable calls
hw_perf_enable() would disable events that were not yet enabled. This causes problems with code that assumes that ->enable/->disable calls are balanced (like the LBR code does). What happens is that we disable newly added counters that match their previous assignment, even though they are not yet programmed on the hardware. Avoid this by only doing the first pass over the existing events. 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 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions