]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel: Reset more state in PMU reset
authorAndi Kleen <ak@linux.intel.com>
Fri, 27 Feb 2015 17:48:30 +0000 (09:48 -0800)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Apr 2015 15:33:16 +0000 (17:33 +0200)
commit6b3759c0bf15d8920927611d2381f102fa040ca0
tree03672541d9447ef25d53e568cba669dfb2e94ad8
parent1d357dc0540100040f85003224f09f291fa9d3c8
perf/x86/intel: Reset more state in PMU reset

The PMU reset code didn't quite keep up with newer PMU features.
Improve it a bit to really reset a modern PMU:

  - Clear all overflow status
  - Clear LBRs and freezing state
  - Disable fixed counters too

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: eranian@google.com
Link: http://lkml.kernel.org/r/1425059312-18217-2-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel.c