| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * arch/powerpc/kernel/pmc.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * Includes code formerly from arch/ppc/kernel/perfmon.c: |
|---|
| 6 | 7 | * Author: Andy Fleming |
|---|
| 7 | 8 | * 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. |
|---|
| 13 | 9 | */ |
|---|
| 14 | 10 | |
|---|
| 15 | 11 | #include <linux/errno.h> |
|---|
| .. | .. |
|---|
| 29 | 25 | { |
|---|
| 30 | 26 | #if defined(CONFIG_FSL_EMB_PERFMON) |
|---|
| 31 | 27 | 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) |
|---|
| 33 | 29 | if (cur_cpu_spec->pmc_type == PPC_PMC_IBM) |
|---|
| 34 | 30 | mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~(MMCR0_PMXE|MMCR0_PMAO)); |
|---|
| 35 | 31 | #else |
|---|