diff options
| -rw-r--r-- | arch/ppc64/oprofile/common.c | 5 | ||||
| -rw-r--r-- | arch/ppc64/oprofile/op_model_power4.c | 3 | ||||
| -rw-r--r-- | arch/ppc64/oprofile/op_model_rs64.c | 3 | ||||
| -rw-r--r-- | include/asm-ppc64/oprofile_impl.h (renamed from arch/ppc64/oprofile/op_impl.h) | 3 | 
4 files changed, 6 insertions, 8 deletions
| diff --git a/arch/ppc64/oprofile/common.c b/arch/ppc64/oprofile/common.c index 0260122a8d6c..3e8daabf1021 100644 --- a/arch/ppc64/oprofile/common.c +++ b/arch/ppc64/oprofile/common.c | |||
| @@ -17,11 +17,8 @@ | |||
| 17 | #include <asm/system.h> | 17 | #include <asm/system.h> | 
| 18 | #include <asm/pmc.h> | 18 | #include <asm/pmc.h> | 
| 19 | #include <asm/cputable.h> | 19 | #include <asm/cputable.h> | 
| 20 | #include <asm/oprofile_impl.h> | ||
| 20 | 21 | ||
| 21 | #include "op_impl.h" | ||
| 22 | |||
| 23 | extern struct op_ppc64_model op_model_rs64; | ||
| 24 | extern struct op_ppc64_model op_model_power4; | ||
| 25 | static struct op_ppc64_model *model; | 22 | static struct op_ppc64_model *model; | 
| 26 | 23 | ||
| 27 | static struct op_counter_config ctr[OP_MAX_COUNTER]; | 24 | static struct op_counter_config ctr[OP_MAX_COUNTER]; | 
| diff --git a/arch/ppc64/oprofile/op_model_power4.c b/arch/ppc64/oprofile/op_model_power4.c index e469610efde5..32b2bb5625fe 100644 --- a/arch/ppc64/oprofile/op_model_power4.c +++ b/arch/ppc64/oprofile/op_model_power4.c | |||
| @@ -16,11 +16,10 @@ | |||
| 16 | #include <asm/cputable.h> | 16 | #include <asm/cputable.h> | 
| 17 | #include <asm/systemcfg.h> | 17 | #include <asm/systemcfg.h> | 
| 18 | #include <asm/rtas.h> | 18 | #include <asm/rtas.h> | 
| 19 | #include <asm/oprofile_impl.h> | ||
| 19 | 20 | ||
| 20 | #define dbg(args...) | 21 | #define dbg(args...) | 
| 21 | 22 | ||
| 22 | #include "op_impl.h" | ||
| 23 | |||
| 24 | static unsigned long reset_value[OP_MAX_COUNTER]; | 23 | static unsigned long reset_value[OP_MAX_COUNTER]; | 
| 25 | 24 | ||
| 26 | static int oprofile_running; | 25 | static int oprofile_running; | 
| diff --git a/arch/ppc64/oprofile/op_model_rs64.c b/arch/ppc64/oprofile/op_model_rs64.c index bcec506c266a..08c5b333f5c4 100644 --- a/arch/ppc64/oprofile/op_model_rs64.c +++ b/arch/ppc64/oprofile/op_model_rs64.c | |||
| @@ -14,11 +14,10 @@ | |||
| 14 | #include <asm/system.h> | 14 | #include <asm/system.h> | 
| 15 | #include <asm/processor.h> | 15 | #include <asm/processor.h> | 
| 16 | #include <asm/cputable.h> | 16 | #include <asm/cputable.h> | 
| 17 | #include <asm/oprofile_impl.h> | ||
| 17 | 18 | ||
| 18 | #define dbg(args...) | 19 | #define dbg(args...) | 
| 19 | 20 | ||
| 20 | #include "op_impl.h" | ||
| 21 | |||
| 22 | static void ctrl_write(unsigned int i, unsigned int val) | 21 | static void ctrl_write(unsigned int i, unsigned int val) | 
| 23 | { | 22 | { | 
| 24 | unsigned int tmp = 0; | 23 | unsigned int tmp = 0; | 
| diff --git a/arch/ppc64/oprofile/op_impl.h b/include/asm-ppc64/oprofile_impl.h index 7fa7eaabc035..b04f1dfb1421 100644 --- a/arch/ppc64/oprofile/op_impl.h +++ b/include/asm-ppc64/oprofile_impl.h | |||
| @@ -49,6 +49,9 @@ struct op_ppc64_model { | |||
| 49 | int num_counters; | 49 | int num_counters; | 
| 50 | }; | 50 | }; | 
| 51 | 51 | ||
| 52 | extern struct op_ppc64_model op_model_rs64; | ||
| 53 | extern struct op_ppc64_model op_model_power4; | ||
| 54 | |||
| 52 | static inline unsigned int ctr_read(unsigned int i) | 55 | static inline unsigned int ctr_read(unsigned int i) | 
| 53 | { | 56 | { | 
| 54 | switch(i) { | 57 | switch(i) { | 
