powerpc: Use privileged SPR number for MMCR2
authorThomas Huth <thuth@redhat.com>
Thu, 12 May 2016 11:29:11 +0000 (13:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 21 Aug 2016 21:22:44 +0000 (23:22 +0200)
commit0d330892ab7d7e1c0f1969250659deb11fe967b7
tree612b6a776232535966297dcce25ba6ca538873a5
parentaeadb93a16d400f837d0c19e68cf22a884b182a6
powerpc: Use privileged SPR number for MMCR2

commit 8dd75ccb571f3c92c48014b3dabd3d51a115ab41 upstream.

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")
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
arch/powerpc/include/asm/reg.h