aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/perf_event_server.h
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2014-07-23 21:12:36 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-07-28 14:11:34 +1000
commit79a4cb28a07c4e24103d00741a3dc2618532efe6 (patch)
tree388b27000174cadcbead484da5c5f8a4398f0d46 /arch/powerpc/include/asm/perf_event_server.h
parentselftests/powerpc: Add test of per-event excludes (diff)
downloadlinux-dev-79a4cb28a07c4e24103d00741a3dc2618532efe6.tar.xz
linux-dev-79a4cb28a07c4e24103d00741a3dc2618532efe6.zip
powerpc/perf: Clear all MMCR settings before calling compute_mmcr()
Because we reuse cpuhw->mmcr on each call to compute_mmcr() there's a risk that we could forget to set one of the values and use whatever value was in there previously. Currently all the implementations are careful to set all the values, but it's safer to clear them all before we call compute_mmcr(). Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/perf_event_server.h')
0 files changed, 0 insertions, 0 deletions