powerpc: Use privileged SPR number for MMCR2
commit8dd75ccb571f3c92c48014b3dabd3d51a115ab41
authorThomas Huth <thuth@redhat.com>
Thu, 12 May 2016 11:29:11 +0000 (12 13:29 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 May 2016 10:08:32 +0000 (31 20:08 +1000)
tree688c46e29e3a585d4fe2d0cdccc6929bb1087dd8
parentd23fac2b27d94aeb7b65536a50d32bfdc21fe01e
powerpc: Use privileged SPR number for MMCR2

We are already using the privileged versions of MMCR0, MMCR1
and MMCRA in the kernel, so for MMCR2, we should better use
the privileged versions, too, to be consistent.

Fixes: 240686c13687 ("powerpc: Initialise PMU related regs on Power8")
Cc: stable@vger.kernel.org # v3.10+
Suggested-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Acked-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/reg.h