Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7309
b: refs/heads/master
c: 1a410d8
h: refs/heads/master
i:
  7307: d6015de
v: v3
  • Loading branch information
Anton Blanchard authored and Paul Mackerras committed Sep 6, 2005
1 parent 2732b0c commit b5f6820
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a6908cd00036080fbea14ff67335e5f2a1ab5489
refs/heads/master: 1a410d883023da70806a0190c4bde104545cb9c6
13 changes: 13 additions & 0 deletions trunk/arch/ppc64/kernel/cputable.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ struct cpu_spec cpu_specs[] = {
.dcache_bsize = 128,
.num_pmcs = 8,
.cpu_setup = __setup_cpu_power3,
.oprofile_cpu_type = "ppc64/power3",
},
{ /* Power3+ */
.pvr_mask = 0xffff0000,
Expand All @@ -72,6 +73,7 @@ struct cpu_spec cpu_specs[] = {
.dcache_bsize = 128,
.num_pmcs = 8,
.cpu_setup = __setup_cpu_power3,
.oprofile_cpu_type = "ppc64/power3",
},
{ /* Northstar */
.pvr_mask = 0xffff0000,
Expand All @@ -85,6 +87,7 @@ struct cpu_spec cpu_specs[] = {
.dcache_bsize = 128,
.num_pmcs = 8,
.cpu_setup = __setup_cpu_power3,
.oprofile_cpu_type = "ppc64/rs64",
},
{ /* Pulsar */
.pvr_mask = 0xffff0000,
Expand All @@ -98,6 +101,7 @@ struct cpu_spec cpu_specs[] = {
.dcache_bsize = 128,
.num_pmcs = 8,
.cpu_setup = __setup_cpu_power3,
.oprofile_cpu_type = "ppc64/rs64",
},
{ /* I-star */
.pvr_mask = 0xffff0000,
Expand All @@ -111,6 +115,7 @@ struct cpu_spec cpu_specs[] = {
.dcache_bsize = 128,
.num_pmcs = 8,
.cpu_setup = __setup_cpu_power3,
.oprofile_cpu_type = "ppc64/rs64",
},
{ /* S-star */
.pvr_mask = 0xffff0000,
Expand All @@ -124,6 +129,7 @@ struct cpu_spec cpu_specs[] = {
.dcache_bsize = 128,
.num_pmcs = 8,
.cpu_setup = __setup_cpu_power3,
.oprofile_cpu_type = "ppc64/rs64",
},
{ /* Power4 */
.pvr_mask = 0xffff0000,
Expand All @@ -137,6 +143,7 @@ struct cpu_spec cpu_specs[] = {
.dcache_bsize = 128,
.num_pmcs = 8,
.cpu_setup = __setup_cpu_power4,
.oprofile_cpu_type = "ppc64/power4",
},
{ /* Power4+ */
.pvr_mask = 0xffff0000,
Expand All @@ -150,6 +157,7 @@ struct cpu_spec cpu_specs[] = {
.dcache_bsize = 128,
.num_pmcs = 8,
.cpu_setup = __setup_cpu_power4,
.oprofile_cpu_type = "ppc64/power4",
},
{ /* PPC970 */
.pvr_mask = 0xffff0000,
Expand All @@ -165,6 +173,7 @@ struct cpu_spec cpu_specs[] = {
.dcache_bsize = 128,
.num_pmcs = 8,
.cpu_setup = __setup_cpu_ppc970,
.oprofile_cpu_type = "ppc64/970",
},
{ /* PPC970FX */
.pvr_mask = 0xffff0000,
Expand All @@ -180,6 +189,7 @@ struct cpu_spec cpu_specs[] = {
.dcache_bsize = 128,
.num_pmcs = 8,
.cpu_setup = __setup_cpu_ppc970,
.oprofile_cpu_type = "ppc64/970",
},
{ /* PPC970MP */
.pvr_mask = 0xffff0000,
Expand All @@ -194,6 +204,7 @@ struct cpu_spec cpu_specs[] = {
.icache_bsize = 128,
.dcache_bsize = 128,
.cpu_setup = __setup_cpu_ppc970,
.oprofile_cpu_type = "ppc64/970",
},
{ /* Power5 */
.pvr_mask = 0xffff0000,
Expand All @@ -209,6 +220,7 @@ struct cpu_spec cpu_specs[] = {
.dcache_bsize = 128,
.num_pmcs = 6,
.cpu_setup = __setup_cpu_power4,
.oprofile_cpu_type = "ppc64/power5",
},
{ /* Power5 */
.pvr_mask = 0xffff0000,
Expand All @@ -224,6 +236,7 @@ struct cpu_spec cpu_specs[] = {
.dcache_bsize = 128,
.num_pmcs = 6,
.cpu_setup = __setup_cpu_power4,
.oprofile_cpu_type = "ppc64/power5",
},
{ /* BE DD1.x */
.pvr_mask = 0xffff0000,
Expand Down
6 changes: 1 addition & 5 deletions trunk/arch/ppc64/oprofile/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,40 +132,36 @@ 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:
case PV_PULSAR:
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;
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/asm-ppc64/cputable.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ struct cpu_spec {
* BHT, SPD, etc... from head.S before branching to identify_machine
*/
cpu_setup_t cpu_setup;

/* Used by oprofile userspace to select the right counters */
char *oprofile_cpu_type;
};

extern struct cpu_spec cpu_specs[];
Expand Down

0 comments on commit b5f6820

Please sign in to comment.