]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel/uncore: Fix PCU filter setup for Sandy/Ivy/Haswell EP
authorAndi Kleen <ak@linux.intel.com>
Thu, 4 Sep 2014 23:08:29 +0000 (16:08 -0700)
committerIngo Molnar <mingo@kernel.org>
Wed, 24 Sep 2014 12:48:24 +0000 (14:48 +0200)
commit9bde7f2fd4aa8ff1ec75221e17626565f1b2a160
treecd65fb437c894bd7ba3fab0fbc7ccad09d8fbe61
parent03f764e78532fb5381c0e1c0082bd3de60677144
perf/x86/intel/uncore: Fix PCU filter setup for Sandy/Ivy/Haswell EP

The PCU frequency band filters use 8 bit each in a register.
When setting up the value the shift value was not correctly
scaled, which resulted in all filters except for band 0 to
be zero. Fix the scaling.

This allows to correctly monitor multiple uncore frequency bands.

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/1409872109-31645-5-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_uncore_snbep.c