pmc.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | pmc.c (d7cceda96badc1bd444cff27ab9c375a1277c1e3) |
---|---|
1/* 2 * arch/powerpc/kernel/pmc.c 3 * 4 * Copyright (C) 2004 David Gibson, IBM Corporation. 5 * Includes code formerly from arch/ppc/kernel/perfmon.c: 6 * Author: Andy Fleming 7 * Copyright (c) 2004 Freescale Semiconductor, Inc 8 * --- 15 unchanged lines hidden (view full) --- 24#ifndef MMCR0_PMAO 25#define MMCR0_PMAO 0 26#endif 27 28static void dummy_perf(struct pt_regs *regs) 29{ 30#if defined(CONFIG_FSL_EMB_PERFMON) 31 mtpmr(PMRN_PMGC0, mfpmr(PMRN_PMGC0) & ~PMGC0_PMIE); | 1/* 2 * arch/powerpc/kernel/pmc.c 3 * 4 * Copyright (C) 2004 David Gibson, IBM Corporation. 5 * Includes code formerly from arch/ppc/kernel/perfmon.c: 6 * Author: Andy Fleming 7 * Copyright (c) 2004 Freescale Semiconductor, Inc 8 * --- 15 unchanged lines hidden (view full) --- 24#ifndef MMCR0_PMAO 25#define MMCR0_PMAO 0 26#endif 27 28static void dummy_perf(struct pt_regs *regs) 29{ 30#if defined(CONFIG_FSL_EMB_PERFMON) 31 mtpmr(PMRN_PMGC0, mfpmr(PMRN_PMGC0) & ~PMGC0_PMIE); |
32#elif defined(CONFIG_PPC64) || defined(CONFIG_6xx) | 32#elif defined(CONFIG_PPC64) || defined(CONFIG_PPC_BOOK3S_32) |
33 if (cur_cpu_spec->pmc_type == PPC_PMC_IBM) 34 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~(MMCR0_PMXE|MMCR0_PMAO)); 35#else 36 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_PMXE); 37#endif 38} 39 40 --- 62 unchanged lines hidden --- | 33 if (cur_cpu_spec->pmc_type == PPC_PMC_IBM) 34 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~(MMCR0_PMXE|MMCR0_PMAO)); 35#else 36 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_PMXE); 37#endif 38} 39 40 --- 62 unchanged lines hidden --- |