]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Avoid mutating event in power8_get_constraint()
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 14 Mar 2014 05:00:32 +0000 (16:00 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 23 Mar 2014 22:48:26 +0000 (09:48 +1100)
commitc9ce6633f430d95bac9c3676bfac51bfa2fad3f0
tree09231ed4d362924f211649c806889b571ffd3383
parent839ede5651b6857fa12145b5fd4b63ec090776cd
powerpc/perf: Avoid mutating event in power8_get_constraint()

We only need to mask the EBB bit out of the event for the check of the
special PMC 5 & 6 events. So use a local to do it just for that code,
rather than changing the event value for the life of the function.

While we're there move the set of mask and value after all the checks.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/perf/power8-pmu.c