diff options
Diffstat (limited to 'arch/ppc64/kernel/pmc.c')
-rw-r--r-- | arch/ppc64/kernel/pmc.c | 4 |
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 | } |