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)
commit7a7a41f9d5b28ac3a916b057a7d3cd3f435ee9a6
tree10a75b68f94e6b947632d568fc4552325d35e62d
parent378a6ee99e4a431ec84e4e61893445c041c93007
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