hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/powerpc/kernel/pmc.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * arch/powerpc/kernel/pmc.c
34 *
....@@ -5,11 +6,6 @@
56 * Includes code formerly from arch/ppc/kernel/perfmon.c:
67 * Author: Andy Fleming
78 * Copyright (c) 2004 Freescale Semiconductor, Inc
8
- *
9
- * This program is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU General Public License
11
- * as published by the Free Software Foundation; either version
12
- * 2 of the License, or (at your option) any later version.
139 */
1410
1511 #include <linux/errno.h>
....@@ -29,7 +25,7 @@
2925 {
3026 #if defined(CONFIG_FSL_EMB_PERFMON)
3127 mtpmr(PMRN_PMGC0, mfpmr(PMRN_PMGC0) & ~PMGC0_PMIE);
32
-#elif defined(CONFIG_PPC64) || defined(CONFIG_6xx)
28
+#elif defined(CONFIG_PPC64) || defined(CONFIG_PPC_BOOK3S_32)
3329 if (cur_cpu_spec->pmc_type == PPC_PMC_IBM)
3430 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~(MMCR0_PMXE|MMCR0_PMAO));
3531 #else