]> err.no Git - linux-2.6/commitdiff
[PATCH] ppc32: fix perf_irq extern on e500
authorMatt Porter <mporter@kernel.crashing.org>
Wed, 9 Nov 2005 05:34:38 +0000 (21:34 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:55:52 +0000 (07:55 -0800)
Fixes e500 build and cleans up traps.c by moving perf_irq extern to
pmc.h.

Signed-off-by: Matt Porter <mporter@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/powerpc/kernel/traps.c
include/asm-powerpc/pmc.h

index 32f215825e8d87823157eb047c453f9fffedbc3b..0578f838760301d2dd7c20c1294ba5459c07e4cd 100644 (file)
@@ -887,10 +887,6 @@ void altivec_unavailable_exception(struct pt_regs *regs)
        die("Unrecoverable VMX/Altivec Unavailable Exception", regs, SIGABRT);
 }
 
-#ifdef CONFIG_PPC64
-extern perf_irq_t perf_irq;
-#endif
-
 #if defined(CONFIG_PPC64) || defined(CONFIG_E500)
 void performance_monitor_exception(struct pt_regs *regs)
 {
index 2f3c3fc2b796ed2f214aad9ad0775d117ebe0c69..5f41f3a2b293cfd304795330f2f758e345dd67fc 100644 (file)
@@ -22,6 +22,7 @@
 #include <asm/ptrace.h>
 
 typedef void (*perf_irq_t)(struct pt_regs *);
+extern perf_irq_t perf_irq;
 
 int reserve_pmc_hardware(perf_irq_t new_perf_irq);
 void release_pmc_hardware(void);