]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Freeze PMC5/6 if we're not using them
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 28 Jun 2013 08:15:12 +0000 (18:15 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 1 Jul 2013 01:49:57 +0000 (11:49 +1000)
commit7518019c6b134261837dbf272dc23dd44b495fb6
tree10a75b68f94e6b947632d568fc4552325d35e62d
parent002f1f2a2c0d8e678fed0d03a74e97e9ba492ff5
powerpc/perf: Freeze PMC5/6 if we're not using them

On Power8 we can freeze PMC5 and 6 if we're not using them. Normally they
run all the time.

As noticed by Anshuman, we should unfreeze them when we disable the PMU
as there are legacy tools which expect them to run all the time.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
CC: <stable@vger.kernel.org> [v3.10]
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/reg.h
arch/powerpc/perf/core-book3s.c
arch/powerpc/perf/power8-pmu.c