Commit 3aa29948 authored by Kumar Gala's avatar Kumar Gala Committed by Linus Torvalds

[PATCH] Fix prototypes & externs in e500 oprofile support

Remove prototypes and externs out of the .c files
Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
Signed-off-by: default avatarKumar Gala <kumar.gala@freescale.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6c4fe420
...@@ -32,15 +32,7 @@ ...@@ -32,15 +32,7 @@
#include <asm/io.h> #include <asm/io.h>
#include <asm/reg.h> #include <asm/reg.h>
#include <asm/xmon.h> #include <asm/xmon.h>
#include <asm/perfmon.h>
void init_pmc_stop(int ctr);
void set_pmc_event(int ctr, int event);
void set_pmc_user_kernel(int ctr, int user, int kernel);
void set_pmc_marked(int ctr, int mark0, int mark1);
void pmc_start_ctr(int ctr, int enable);
void pmc_start_ctrs(int enable);
void pmc_stop_ctrs(void);
void dump_pmcs(void);
static inline u32 get_pmlca(int ctr); static inline u32 get_pmlca(int ctr);
static inline void set_pmlca(int ctr, u32 pmlca); static inline void set_pmlca(int ctr, u32 pmlca);
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#ifdef CONFIG_PMAC_BACKLIGHT #ifdef CONFIG_PMAC_BACKLIGHT
#include <asm/backlight.h> #include <asm/backlight.h>
#endif #endif
#include <asm/perfmon.h>
#ifdef CONFIG_XMON #ifdef CONFIG_XMON
void (*debugger)(struct pt_regs *regs) = xmon; void (*debugger)(struct pt_regs *regs) = xmon;
...@@ -71,8 +72,6 @@ void (*debugger_fault_handler)(struct pt_regs *regs); ...@@ -71,8 +72,6 @@ void (*debugger_fault_handler)(struct pt_regs *regs);
* Trap & Exception support * Trap & Exception support
*/ */
extern void (*perf_irq)(struct pt_regs *);
spinlock_t die_lock = SPIN_LOCK_UNLOCKED; spinlock_t die_lock = SPIN_LOCK_UNLOCKED;
void die(const char * str, struct pt_regs * fp, long err) void die(const char * str, struct pt_regs * fp, long err)
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "op_impl.h" #include "op_impl.h"
extern struct op_ppc32_model op_model_fsl_booke;
static struct op_ppc32_model *model; static struct op_ppc32_model *model;
static struct op_counter_config ctr[OP_MAX_COUNTER]; static struct op_counter_config ctr[OP_MAX_COUNTER];
......
#ifndef __PERFMON_H #ifndef __PERFMON_H
#define __PERFMON_H #define __PERFMON_H
extern void (*perf_irq)(struct pt_regs *);
int request_perfmon_irq(void (*handler)(struct pt_regs *)); int request_perfmon_irq(void (*handler)(struct pt_regs *));
void free_perfmon_irq(void); void free_perfmon_irq(void);
...@@ -13,6 +15,8 @@ void pmc_start_ctr(int ctr, int enable); ...@@ -13,6 +15,8 @@ void pmc_start_ctr(int ctr, int enable);
void pmc_start_ctrs(int enable); void pmc_start_ctrs(int enable);
void pmc_stop_ctrs(void); void pmc_stop_ctrs(void);
void dump_pmcs(void); void dump_pmcs(void);
extern struct op_ppc32_model op_model_fsl_booke;
#endif #endif
#endif /* __PERFMON_H */ #endif /* __PERFMON_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment