.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Performance counter support for POWER8 processors. |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright 2009 Paul Mackerras, IBM Corporation. |
---|
5 | 6 | * Copyright 2013 Michael Ellerman, IBM Corporation. |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or |
---|
8 | | - * modify it under the terms of the GNU General Public License |
---|
9 | | - * as published by the Free Software Foundation; either version |
---|
10 | | - * 2 of the License, or (at your option) any later version. |
---|
11 | 7 | */ |
---|
12 | 8 | |
---|
13 | 9 | #define pr_fmt(fmt) "power8-pmu: " fmt |
---|
.. | .. |
---|
257 | 253 | * 0 means not supported, -1 means nonsensical, other values |
---|
258 | 254 | * are event codes. |
---|
259 | 255 | */ |
---|
260 | | -static int power8_cache_events[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = { |
---|
| 256 | +static u64 power8_cache_events[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = { |
---|
261 | 257 | [ C(L1D) ] = { |
---|
262 | 258 | [ C(OP_READ) ] = { |
---|
263 | 259 | [ C(RESULT_ACCESS) ] = PM_LD_REF_L1, |
---|
.. | .. |
---|
382 | 378 | .bhrb_nr = 32, |
---|
383 | 379 | }; |
---|
384 | 380 | |
---|
385 | | -static int __init init_power8_pmu(void) |
---|
| 381 | +int init_power8_pmu(void) |
---|
386 | 382 | { |
---|
387 | 383 | int rc; |
---|
388 | 384 | |
---|
.. | .. |
---|
402 | 398 | |
---|
403 | 399 | return 0; |
---|
404 | 400 | } |
---|
405 | | -early_initcall(init_power8_pmu); |
---|