aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/pmc.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-10-10 00:01:07 -0400
committerPaul Mackerras <paulus@samba.org>2005-10-10 00:01:07 -0400
commitb5bbeb23732196558222a2827092f5b7be8a7945 (patch)
treed367c3c0c52e9db865c2ceaecc32498a65337c7b /arch/ppc64/kernel/pmc.c
parent05f62a5c049845eab8dfb3aeda55c18a2d4396e3 (diff)
powerpc: Use SPRN_xxx rather than xxx for SPR numbers
This changes symbols like HID0, SPRG3, SRR0, SRR1 etc. that refer to special purpose registers to SPRN_HID0, SPRN_SPRG3, etc. Using the SPRN_ symbols clutters the namespace less, and the forthcoming merge of asm/processor.h and asm/reg.h is going to remove the non-SPRN_ versions. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel/pmc.c')
-rw-r--r--arch/ppc64/kernel/pmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ppc64/kernel/pmc.c b/arch/ppc64/kernel/pmc.c
index 63d9481c3ec2..944d7df7935f 100644
--- a/arch/ppc64/kernel/pmc.c
+++ b/arch/ppc64/kernel/pmc.c
@@ -70,7 +70,7 @@ void power4_enable_pmcs(void)
70{ 70{
71 unsigned long hid0; 71 unsigned long hid0;
72 72
73 hid0 = mfspr(HID0); 73 hid0 = mfspr(SPRN_HID0);
74 hid0 |= 1UL << (63 - 20); 74 hid0 |= 1UL << (63 - 20);
75 75
76 /* POWER4 requires the following sequence */ 76 /* POWER4 requires the following sequence */
@@ -83,6 +83,6 @@ void power4_enable_pmcs(void)
83 "mfspr %0, %1\n" 83 "mfspr %0, %1\n"
84 "mfspr %0, %1\n" 84 "mfspr %0, %1\n"
85 "mfspr %0, %1\n" 85 "mfspr %0, %1\n"
86 "isync" : "=&r" (hid0) : "i" (HID0), "0" (hid0): 86 "isync" : "=&r" (hid0) : "i" (SPRN_HID0), "0" (hid0):
87 "memory"); 87 "memory");
88} 88}