diff options
Diffstat (limited to 'arch/ppc/kernel/perfmon.c')
-rw-r--r-- | arch/ppc/kernel/perfmon.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/ppc/kernel/perfmon.c b/arch/ppc/kernel/perfmon.c index fa1dad96b830..22df9a596a0f 100644 --- a/arch/ppc/kernel/perfmon.c +++ b/arch/ppc/kernel/perfmon.c | |||
@@ -45,9 +45,8 @@ static void dummy_perf(struct pt_regs *regs) | |||
45 | mtpmr(PMRN_PMGC0, pmgc0); | 45 | mtpmr(PMRN_PMGC0, pmgc0); |
46 | } | 46 | } |
47 | 47 | ||
48 | #else | 48 | #elif defined(CONFIG_6xx) |
49 | /* Ensure exceptions are disabled */ | 49 | /* Ensure exceptions are disabled */ |
50 | |||
51 | static void dummy_perf(struct pt_regs *regs) | 50 | static void dummy_perf(struct pt_regs *regs) |
52 | { | 51 | { |
53 | unsigned int mmcr0 = mfspr(SPRN_MMCR0); | 52 | unsigned int mmcr0 = mfspr(SPRN_MMCR0); |
@@ -55,6 +54,10 @@ static void dummy_perf(struct pt_regs *regs) | |||
55 | mmcr0 &= ~MMCR0_PMXE; | 54 | mmcr0 &= ~MMCR0_PMXE; |
56 | mtspr(SPRN_MMCR0, mmcr0); | 55 | mtspr(SPRN_MMCR0, mmcr0); |
57 | } | 56 | } |
57 | #else | ||
58 | static void dummy_perf(struct pt_regs *regs) | ||
59 | { | ||
60 | } | ||
58 | #endif | 61 | #endif |
59 | 62 | ||
60 | void (*perf_irq)(struct pt_regs *) = dummy_perf; | 63 | void (*perf_irq)(struct pt_regs *) = dummy_perf; |