[PATCH] ppc: fix stupid thinko in oprofile fix

Benjamin Herrenschmidt benh at kernel.crashing.org
Mon Sep 26 13:42:12 EST 2005


I did something stupid in my oprofile fix, here's the obvious fix:

Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>

Index: linux-work/arch/ppc/kernel/perfmon.c
===================================================================
--- linux-work.orig/arch/ppc/kernel/perfmon.c	2005-09-26 09:53:19.000000000 +1000
+++ linux-work/arch/ppc/kernel/perfmon.c	2005-09-26 13:40:16.000000000 +1000
@@ -45,9 +45,8 @@
 	mtpmr(PMRN_PMGC0, pmgc0);
 }
 
-#elif CONFIG_6xx
+#elif defined(CONFIG_6xx)
 /* Ensure exceptions are disabled */
-
 static void dummy_perf(struct pt_regs *regs)
 {
 	unsigned int mmcr0 = mfspr(SPRN_MMCR0);





More information about the Linuxppc-dev mailing list