powerpc/perf: Add regs_no_sipr()
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 25 Apr 2013 19:28:26 +0000 (19:28 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 26 Apr 2013 06:11:09 +0000 (16:11 +1000)
commit860aad71fc7022e5a3907afe50fd96a11e546802
tree97f1d6ebb0b89a42ed57c651ec425e6aa7b26db8
parent33904054b40832908dfaeeece282f2f0ff636f14
powerpc/perf: Add regs_no_sipr()

On power8 the presence or absence of SIPR depends on settings at runtime,
so convert to using a dynamic flag for NO_SIPR. Existing backends that
set NO_SIPR unconditionally set the dynamic flag obviously.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/perf/core-book3s.c