diff options
Diffstat (limited to 'arch/powerpc/kernel/power5+-pmu.c')
-rw-r--r-- | arch/powerpc/kernel/power5+-pmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/power5+-pmu.c b/arch/powerpc/kernel/power5+-pmu.c index c6cdfc165d6..8471e3c2e46 100644 --- a/arch/powerpc/kernel/power5+-pmu.c +++ b/arch/powerpc/kernel/power5+-pmu.c | |||
@@ -242,7 +242,7 @@ static const unsigned char bytedecode_alternatives[4][4] = { | |||
242 | * event code for those that do, or -1 otherwise. This also handles | 242 | * event code for those that do, or -1 otherwise. This also handles |
243 | * alternative PCMSEL values for add events. | 243 | * alternative PCMSEL values for add events. |
244 | */ | 244 | */ |
245 | static int find_alternative_bdecode(unsigned int event) | 245 | static s64 find_alternative_bdecode(u64 event) |
246 | { | 246 | { |
247 | int pmc, altpmc, pp, j; | 247 | int pmc, altpmc, pp, j; |
248 | 248 | ||
@@ -277,7 +277,7 @@ static int power5p_get_alternatives(u64 event, unsigned int flags, u64 alt[]) | |||
277 | { | 277 | { |
278 | int i, j, nalt = 1; | 278 | int i, j, nalt = 1; |
279 | int nlim; | 279 | int nlim; |
280 | u64 ae; | 280 | s64 ae; |
281 | 281 | ||
282 | alt[0] = event; | 282 | alt[0] = event; |
283 | nalt = 1; | 283 | nalt = 1; |