summaryrefslogtreecommitdiff
path: root/arch/ppc64/oprofile
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2005-09-06 14:53:57 +1000
committerPaul Mackerras <paulus@samba.org>2005-09-06 16:09:21 +1000
commit1a410d883023da70806a0190c4bde104545cb9c6 (patch)
treefbc47ca22df94ed69e78d9abe9153cbe22a74924 /arch/ppc64/oprofile
parenta6908cd00036080fbea14ff67335e5f2a1ab5489 (diff)
[PATCH] ppc64: Add oprofile cpu_type to cpu feature struct
Add oprofile cpu_type to cpu feature struct. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/oprofile')
-rw-r--r--arch/ppc64/oprofile/common.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/ppc64/oprofile/common.c b/arch/ppc64/oprofile/common.c
index a376eb2a1f0f..0260122a8d6c 100644
--- a/arch/ppc64/oprofile/common.c
+++ b/arch/ppc64/oprofile/common.c
@@ -132,7 +132,6 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
case PV_630:
case PV_630p:
model = &op_model_rs64;
- ops->cpu_type = "ppc64/power3";
break;
case PV_NORTHSTAR:
@@ -140,32 +139,29 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
case PV_ICESTAR:
case PV_SSTAR:
model = &op_model_rs64;
- ops->cpu_type = "ppc64/rs64";
break;
case PV_POWER4:
case PV_POWER4p:
model = &op_model_power4;
- ops->cpu_type = "ppc64/power4";
break;
case PV_970:
case PV_970FX:
case PV_970MP:
model = &op_model_power4;
- ops->cpu_type = "ppc64/970";
break;
case PV_POWER5:
case PV_POWER5p:
model = &op_model_power4;
- ops->cpu_type = "ppc64/power5";
break;
default:
return -ENODEV;
}
+ ops->cpu_type = cur_cpu_spec->oprofile_cpu_type;
model->num_counters = cur_cpu_spec->num_pmcs;
ops->create_files = op_ppc64_create_files;
ops->setup = op_ppc64_setup;