aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-09-19 09:18:31 -0400
committerPaul Mackerras <paulus@samba.org>2005-09-21 05:21:08 -0400
commita3e48c10cca3287a845435dd8ca58ecbde72d847 (patch)
tree5976d3b64f272d4383e1dd710afc3b5afd6d08d9
parentd9e5b83b120dea9f306de06f7dead55103ab2d46 (diff)
[PATCH] powerpc: rename op_ppc{32,64}_model to op_powerpc_model
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r--arch/ppc/oprofile/common.c2
-rw-r--r--arch/ppc/oprofile/op_impl.h2
-rw-r--r--arch/ppc/oprofile/op_model_fsl_booke.c2
-rw-r--r--arch/ppc64/oprofile/common.c2
-rw-r--r--arch/ppc64/oprofile/op_model_power4.c2
-rw-r--r--arch/ppc64/oprofile/op_model_rs64.c2
-rw-r--r--include/asm-ppc/perfmon.h2
-rw-r--r--include/asm-ppc64/cputable.h4
-rw-r--r--include/asm-ppc64/oprofile_impl.h6
9 files changed, 12 insertions, 12 deletions
diff --git a/arch/ppc/oprofile/common.c b/arch/ppc/oprofile/common.c
index 3169c67abea7..a67d438a7144 100644
--- a/arch/ppc/oprofile/common.c
+++ b/arch/ppc/oprofile/common.c
@@ -25,7 +25,7 @@
25 25
26#include "op_impl.h" 26#include "op_impl.h"
27 27
28static struct op_ppc32_model *model; 28static struct op_powerpc_model *model;
29 29
30static struct op_counter_config ctr[OP_MAX_COUNTER]; 30static struct op_counter_config ctr[OP_MAX_COUNTER];
31static struct op_system_config sys; 31static struct op_system_config sys;
diff --git a/arch/ppc/oprofile/op_impl.h b/arch/ppc/oprofile/op_impl.h
index bc336dc971e3..297f3097d2d9 100644
--- a/arch/ppc/oprofile/op_impl.h
+++ b/arch/ppc/oprofile/op_impl.h
@@ -31,7 +31,7 @@ struct op_system_config {
31}; 31};
32 32
33/* Per-arch configuration */ 33/* Per-arch configuration */
34struct op_ppc32_model { 34struct op_powerpc_model {
35 void (*reg_setup) (struct op_counter_config *, 35 void (*reg_setup) (struct op_counter_config *,
36 struct op_system_config *, 36 struct op_system_config *,
37 int num_counters); 37 int num_counters);
diff --git a/arch/ppc/oprofile/op_model_fsl_booke.c b/arch/ppc/oprofile/op_model_fsl_booke.c
index fc9c859358c6..8fc60f6055ab 100644
--- a/arch/ppc/oprofile/op_model_fsl_booke.c
+++ b/arch/ppc/oprofile/op_model_fsl_booke.c
@@ -176,7 +176,7 @@ static void fsl_booke_handle_interrupt(struct pt_regs *regs,
176 pmc_start_ctrs(1); 176 pmc_start_ctrs(1);
177} 177}
178 178
179struct op_ppc32_model op_model_fsl_booke = { 179struct op_powerpc_model op_model_fsl_booke = {
180 .reg_setup = fsl_booke_reg_setup, 180 .reg_setup = fsl_booke_reg_setup,
181 .start = fsl_booke_start, 181 .start = fsl_booke_start,
182 .stop = fsl_booke_stop, 182 .stop = fsl_booke_stop,
diff --git a/arch/ppc64/oprofile/common.c b/arch/ppc64/oprofile/common.c
index e5f572710aa0..ff9361a07d39 100644
--- a/arch/ppc64/oprofile/common.c
+++ b/arch/ppc64/oprofile/common.c
@@ -19,7 +19,7 @@
19#include <asm/cputable.h> 19#include <asm/cputable.h>
20#include <asm/oprofile_impl.h> 20#include <asm/oprofile_impl.h>
21 21
22static struct op_ppc64_model *model; 22static struct op_powerpc_model *model;
23 23
24static struct op_counter_config ctr[OP_MAX_COUNTER]; 24static struct op_counter_config ctr[OP_MAX_COUNTER];
25static struct op_system_config sys; 25static struct op_system_config sys;
diff --git a/arch/ppc64/oprofile/op_model_power4.c b/arch/ppc64/oprofile/op_model_power4.c
index 32b2bb5625fe..886449315847 100644
--- a/arch/ppc64/oprofile/op_model_power4.c
+++ b/arch/ppc64/oprofile/op_model_power4.c
@@ -300,7 +300,7 @@ static void power4_handle_interrupt(struct pt_regs *regs,
300 mtspr(SPRN_MMCR0, mmcr0); 300 mtspr(SPRN_MMCR0, mmcr0);
301} 301}
302 302
303struct op_ppc64_model op_model_power4 = { 303struct op_powerpc_model op_model_power4 = {
304 .reg_setup = power4_reg_setup, 304 .reg_setup = power4_reg_setup,
305 .cpu_setup = power4_cpu_setup, 305 .cpu_setup = power4_cpu_setup,
306 .start = power4_start, 306 .start = power4_start,
diff --git a/arch/ppc64/oprofile/op_model_rs64.c b/arch/ppc64/oprofile/op_model_rs64.c
index 08c5b333f5c4..e010b85996e8 100644
--- a/arch/ppc64/oprofile/op_model_rs64.c
+++ b/arch/ppc64/oprofile/op_model_rs64.c
@@ -209,7 +209,7 @@ static void rs64_handle_interrupt(struct pt_regs *regs,
209 mtspr(SPRN_MMCR0, mmcr0); 209 mtspr(SPRN_MMCR0, mmcr0);
210} 210}
211 211
212struct op_ppc64_model op_model_rs64 = { 212struct op_powerpc_model op_model_rs64 = {
213 .reg_setup = rs64_reg_setup, 213 .reg_setup = rs64_reg_setup,
214 .cpu_setup = rs64_cpu_setup, 214 .cpu_setup = rs64_cpu_setup,
215 .start = rs64_start, 215 .start = rs64_start,
diff --git a/include/asm-ppc/perfmon.h b/include/asm-ppc/perfmon.h
index 5e7a89c47b5b..e9692a603cff 100644
--- a/include/asm-ppc/perfmon.h
+++ b/include/asm-ppc/perfmon.h
@@ -16,7 +16,7 @@ void pmc_start_ctrs(int enable);
16void pmc_stop_ctrs(void); 16void pmc_stop_ctrs(void);
17void dump_pmcs(void); 17void dump_pmcs(void);
18 18
19extern struct op_ppc32_model op_model_fsl_booke; 19extern struct op_powerpc_model op_model_fsl_booke;
20#endif 20#endif
21 21
22#endif /* __PERFMON_H */ 22#endif /* __PERFMON_H */
diff --git a/include/asm-ppc64/cputable.h b/include/asm-ppc64/cputable.h
index 35121408ed1c..3eef40efd082 100644
--- a/include/asm-ppc64/cputable.h
+++ b/include/asm-ppc64/cputable.h
@@ -36,7 +36,7 @@
36 * via the mkdefs mechanism. 36 * via the mkdefs mechanism.
37 */ 37 */
38struct cpu_spec; 38struct cpu_spec;
39struct op_ppc64_model; 39struct op_powerpc_model;
40 40
41typedef void (*cpu_setup_t)(unsigned long offset, struct cpu_spec* spec); 41typedef void (*cpu_setup_t)(unsigned long offset, struct cpu_spec* spec);
42 42
@@ -65,7 +65,7 @@ struct cpu_spec {
65 char *oprofile_cpu_type; 65 char *oprofile_cpu_type;
66 66
67 /* Processor specific oprofile operations */ 67 /* Processor specific oprofile operations */
68 struct op_ppc64_model *oprofile_model; 68 struct op_powerpc_model *oprofile_model;
69}; 69};
70 70
71extern struct cpu_spec cpu_specs[]; 71extern struct cpu_spec cpu_specs[];
diff --git a/include/asm-ppc64/oprofile_impl.h b/include/asm-ppc64/oprofile_impl.h
index b04f1dfb1421..50420e715f05 100644
--- a/include/asm-ppc64/oprofile_impl.h
+++ b/include/asm-ppc64/oprofile_impl.h
@@ -37,7 +37,7 @@ struct op_system_config {
37}; 37};
38 38
39/* Per-arch configuration */ 39/* Per-arch configuration */
40struct op_ppc64_model { 40struct op_powerpc_model {
41 void (*reg_setup) (struct op_counter_config *, 41 void (*reg_setup) (struct op_counter_config *,
42 struct op_system_config *, 42 struct op_system_config *,
43 int num_counters); 43 int num_counters);
@@ -49,8 +49,8 @@ struct op_ppc64_model {
49 int num_counters; 49 int num_counters;
50}; 50};
51 51
52extern struct op_ppc64_model op_model_rs64; 52extern struct op_powerpc_model op_model_rs64;
53extern struct op_ppc64_model op_model_power4; 53extern struct op_powerpc_model op_model_power4;
54 54
55static inline unsigned int ctr_read(unsigned int i) 55static inline unsigned int ctr_read(unsigned int i)
56{ 56{