Skip to contentSkip to conversation

powerpc: Use privileged SPR number for MMCR2

PATCH Applied Thomas Huth 3 participants 3 messages May 12, 2016 – May 31, 2016 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/powerpc/include/asm/reg.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/include/asm/reg.h +1 -1
index ce3e1b7..166d863 100644
@@ -715,7 +715,7 @@
 #define   MMCR0_FCWAIT	0x00000002UL /* freeze counter in WAIT state */
 #define   MMCR0_FCHV	0x00000001UL /* freeze conditions in hypervisor mode */
 #define SPRN_MMCR1	798
-#define SPRN_MMCR2	769
+#define SPRN_MMCR2	785
 #define SPRN_MMCRA	0x312
 #define   MMCRA_SDSYNC	0x80000000UL /* SDAR synced with SIAR */
 #define   MMCRA_SDAR_DCACHE_MISS 0x40000000UL
Signature · 1 line
1.8.3.1
reviewer Applied
#2 lore raw
In reply to Thomas Huth
Quoted 7 lines · Thomas Huth

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.

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/8dd75ccb571f3c92c48014b3da

cheers