aboutsummaryrefslogtreecommitdiff
path: root/arch/ppc64/kernel
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2005-09-06 14:57:52 +1000
committerPaul Mackerras <paulus@samba.org>2005-09-06 16:09:21 +1000
commit8fef0306f9164d4bfd0befb62e63e4d1167681b5 (patch)
tree55158562dbbe4a9e16f9f5e600c2b7fcee21d38b /arch/ppc64/kernel
parentdca859329cee9b4cf02c8b7cb805b49973292ed2 (diff)
[PATCH] ppc64: Move oprofile_model into cpu feature struct
Move oprofile_model into cpu feature struct. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel')
-rw-r--r--arch/ppc64/kernel/cputable.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/ppc64/kernel/cputable.c b/arch/ppc64/kernel/cputable.c
index c022ec4d1e9..a18aa383f12 100644
--- a/arch/ppc64/kernel/cputable.c
+++ b/arch/ppc64/kernel/cputable.c
@@ -19,6 +19,7 @@
#include <linux/init.h>
#include <linux/module.h>
+#include <asm/oprofile_impl.h>
#include <asm/cputable.h>
struct cpu_spec* cur_cpu_spec = NULL;
@@ -61,6 +62,7 @@ struct cpu_spec cpu_specs[] = {
.num_pmcs = 8,
.cpu_setup = __setup_cpu_power3,
.oprofile_cpu_type = "ppc64/power3",
+ .oprofile_model = &op_model_rs64,
},
{ /* Power3+ */
.pvr_mask = 0xffff0000,
@@ -74,6 +76,7 @@ struct cpu_spec cpu_specs[] = {
.num_pmcs = 8,
.cpu_setup = __setup_cpu_power3,
.oprofile_cpu_type = "ppc64/power3",
+ .oprofile_model = &op_model_rs64,
},
{ /* Northstar */
.pvr_mask = 0xffff0000,
@@ -88,6 +91,7 @@ struct cpu_spec cpu_specs[] = {
.num_pmcs = 8,
.cpu_setup = __setup_cpu_power3,
.oprofile_cpu_type = "ppc64/rs64",
+ .oprofile_model = &op_model_rs64,
},
{ /* Pulsar */
.pvr_mask = 0xffff0000,
@@ -102,6 +106,7 @@ struct cpu_spec cpu_specs[] = {
.num_pmcs = 8,
.cpu_setup = __setup_cpu_power3,
.oprofile_cpu_type = "ppc64/rs64",
+ .oprofile_model = &op_model_rs64,
},
{ /* I-star */
.pvr_mask = 0xffff0000,
@@ -116,6 +121,7 @@ struct cpu_spec cpu_specs[] = {
.num_pmcs = 8,
.cpu_setup = __setup_cpu_power3,
.oprofile_cpu_type = "ppc64/rs64",
+ .oprofile_model = &op_model_rs64,
},
{ /* S-star */
.pvr_mask = 0xffff0000,
@@ -130,6 +136,7 @@ struct cpu_spec cpu_specs[] = {
.num_pmcs = 8,
.cpu_setup = __setup_cpu_power3,
.oprofile_cpu_type = "ppc64/rs64",
+ .oprofile_model = &op_model_rs64,
},
{ /* Power4 */
.pvr_mask = 0xffff0000,
@@ -144,6 +151,7 @@ struct cpu_spec cpu_specs[] = {
.num_pmcs = 8,
.cpu_setup = __setup_cpu_power4,
.oprofile_cpu_type = "ppc64/power4",
+ .oprofile_model = &op_model_rs64,
},
{ /* Power4+ */
.pvr_mask = 0xffff0000,
@@ -158,6 +166,7 @@ struct cpu_spec cpu_specs[] = {
.num_pmcs = 8,
.cpu_setup = __setup_cpu_power4,
.oprofile_cpu_type = "ppc64/power4",
+ .oprofile_model = &op_model_power4,
},
{ /* PPC970 */
.pvr_mask = 0xffff0000,
@@ -174,6 +183,7 @@ struct cpu_spec cpu_specs[] = {
.num_pmcs = 8,
.cpu_setup = __setup_cpu_ppc970,
.oprofile_cpu_type = "ppc64/970",
+ .oprofile_model = &op_model_power4,
},
{ /* PPC970FX */
.pvr_mask = 0xffff0000,
@@ -190,6 +200,7 @@ struct cpu_spec cpu_specs[] = {
.num_pmcs = 8,
.cpu_setup = __setup_cpu_ppc970,
.oprofile_cpu_type = "ppc64/970",
+ .oprofile_model = &op_model_power4,
},
{ /* PPC970MP */
.pvr_mask = 0xffff0000,
@@ -205,6 +216,7 @@ struct cpu_spec cpu_specs[] = {
.dcache_bsize = 128,
.cpu_setup = __setup_cpu_ppc970,
.oprofile_cpu_type = "ppc64/970",
+ .oprofile_model = &op_model_power4,
},
{ /* Power5 */
.pvr_mask = 0xffff0000,
@@ -221,6 +233,7 @@ struct cpu_spec cpu_specs[] = {
.num_pmcs = 6,
.cpu_setup = __setup_cpu_power4,
.oprofile_cpu_type = "ppc64/power5",
+ .oprofile_model = &op_model_power4,
},
{ /* Power5 */
.pvr_mask = 0xffff0000,
@@ -237,6 +250,7 @@ struct cpu_spec cpu_specs[] = {
.num_pmcs = 6,
.cpu_setup = __setup_cpu_power4,
.oprofile_cpu_type = "ppc64/power5",
+ .oprofile_model = &op_model_power4,
},
{ /* BE DD1.x */
.pvr_mask = 0xffff0000,