Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9224
b: refs/heads/master
c: 244bc05
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Linus Torvalds committed Sep 23, 2005
1 parent 08417ea commit 7499f23
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 66c81f0059b57e18aad43a5b0d330102c237cd72
refs/heads/master: 244bc050d5c9431682b7d834aff92e663fe88bb2
3 changes: 1 addition & 2 deletions trunk/arch/ppc/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ extra-y += vmlinux.lds
obj-y := entry.o traps.o irq.o idle.o time.o misc.o \
process.o signal.o ptrace.o align.o \
semaphore.o syscalls.o setup.o \
cputable.o ppc_htab.o
cputable.o ppc_htab.o perfmon.o
obj-$(CONFIG_6xx) += l2cr.o cpu_setup_6xx.o
obj-$(CONFIG_E500) += perfmon.o
obj-$(CONFIG_SOFTWARE_SUSPEND) += swsusp.o
obj-$(CONFIG_POWER4) += cpu_setup_power4.o
obj-$(CONFIG_MODULES) += module.o ppc_ksyms.o
Expand Down
6 changes: 5 additions & 1 deletion trunk/arch/ppc/kernel/perfmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static void dummy_perf(struct pt_regs *regs)
mtpmr(PMRN_PMGC0, pmgc0);
}

#else
#elif CONFIG_6xx
/* Ensure exceptions are disabled */

static void dummy_perf(struct pt_regs *regs)
Expand All @@ -55,6 +55,10 @@ static void dummy_perf(struct pt_regs *regs)
mmcr0 &= ~MMCR0_PMXE;
mtspr(SPRN_MMCR0, mmcr0);
}
#else
static void dummy_perf(struct pt_regs *regs)
{
}
#endif

void (*perf_irq)(struct pt_regs *) = dummy_perf;
Expand Down

0 comments on commit 7499f23

Please sign in to comment.