hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/powerpc/perf/power8-pmu.c
....@@ -1,13 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Performance counter support for POWER8 processors.
34 *
45 * Copyright 2009 Paul Mackerras, IBM Corporation.
56 * 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.
117 */
128
139 #define pr_fmt(fmt) "power8-pmu: " fmt
....@@ -257,7 +253,7 @@
257253 * 0 means not supported, -1 means nonsensical, other values
258254 * are event codes.
259255 */
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)] = {
261257 [ C(L1D) ] = {
262258 [ C(OP_READ) ] = {
263259 [ C(RESULT_ACCESS) ] = PM_LD_REF_L1,
....@@ -382,7 +378,7 @@
382378 .bhrb_nr = 32,
383379 };
384380
385
-static int __init init_power8_pmu(void)
381
+int init_power8_pmu(void)
386382 {
387383 int rc;
388384
....@@ -402,4 +398,3 @@
402398
403399 return 0;
404400 }
405
-early_initcall(init_power8_pmu);