diff options
Diffstat (limited to 'arch/powerpc/kernel/power5+-pmu.c')
-rw-r--r-- | arch/powerpc/kernel/power5+-pmu.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/powerpc/kernel/power5+-pmu.c b/arch/powerpc/kernel/power5+-pmu.c index 8154eaa2404f..3ac0654372ab 100644 --- a/arch/powerpc/kernel/power5+-pmu.c +++ b/arch/powerpc/kernel/power5+-pmu.c | |||
@@ -135,7 +135,7 @@ static u64 unit_cons[PM_LASTUNIT+1][2] = { | |||
135 | [PM_GRS] = { 0x0e00000000ull, 0x0c40000000ull }, | 135 | [PM_GRS] = { 0x0e00000000ull, 0x0c40000000ull }, |
136 | }; | 136 | }; |
137 | 137 | ||
138 | static int power5p_get_constraint(unsigned int event, u64 *maskp, u64 *valp) | 138 | static int power5p_get_constraint(u64 event, u64 *maskp, u64 *valp) |
139 | { | 139 | { |
140 | int pmc, byte, unit, sh; | 140 | int pmc, byte, unit, sh; |
141 | int bit, fmask; | 141 | int bit, fmask; |
@@ -188,7 +188,7 @@ static int power5p_get_constraint(unsigned int event, u64 *maskp, u64 *valp) | |||
188 | return 0; | 188 | return 0; |
189 | } | 189 | } |
190 | 190 | ||
191 | static int power5p_limited_pmc_event(unsigned int event) | 191 | static int power5p_limited_pmc_event(u64 event) |
192 | { | 192 | { |
193 | int pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; | 193 | int pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; |
194 | 194 | ||
@@ -273,11 +273,11 @@ static int find_alternative_bdecode(unsigned int event) | |||
273 | return -1; | 273 | return -1; |
274 | } | 274 | } |
275 | 275 | ||
276 | static int power5p_get_alternatives(unsigned int event, unsigned int flags, | 276 | static int power5p_get_alternatives(u64 event, unsigned int flags, u64 alt[]) |
277 | unsigned int alt[]) | ||
278 | { | 277 | { |
279 | int i, j, ae, nalt = 1; | 278 | int i, j, nalt = 1; |
280 | int nlim; | 279 | int nlim; |
280 | u64 ae; | ||
281 | 281 | ||
282 | alt[0] = event; | 282 | alt[0] = event; |
283 | nalt = 1; | 283 | nalt = 1; |
@@ -402,7 +402,7 @@ static unsigned char direct_event_is_marked[0x28] = { | |||
402 | * Returns 1 if event counts things relating to marked instructions | 402 | * Returns 1 if event counts things relating to marked instructions |
403 | * and thus needs the MMCRA_SAMPLE_ENABLE bit set, or 0 if not. | 403 | * and thus needs the MMCRA_SAMPLE_ENABLE bit set, or 0 if not. |
404 | */ | 404 | */ |
405 | static int power5p_marked_instr_event(unsigned int event) | 405 | static int power5p_marked_instr_event(u64 event) |
406 | { | 406 | { |
407 | int pmc, psel; | 407 | int pmc, psel; |
408 | int bit, byte, unit; | 408 | int bit, byte, unit; |
@@ -451,7 +451,7 @@ static int power5p_marked_instr_event(unsigned int event) | |||
451 | return (mask >> (byte * 8 + bit)) & 1; | 451 | return (mask >> (byte * 8 + bit)) & 1; |
452 | } | 452 | } |
453 | 453 | ||
454 | static int power5p_compute_mmcr(unsigned int event[], int n_ev, | 454 | static int power5p_compute_mmcr(u64 event[], int n_ev, |
455 | unsigned int hwc[], u64 mmcr[]) | 455 | unsigned int hwc[], u64 mmcr[]) |
456 | { | 456 | { |
457 | u64 mmcr1 = 0; | 457 | u64 mmcr1 = 0; |