Skip to content

Commit

Permalink
sh: oprofile: Fix up the SH7750 performance counter name.
Browse files Browse the repository at this point in the history
Rather than varying this on a subtype level, we use the counter type as a
generic identifier. This simplifies logic in the userspace tools where no
fundamental difference exists across the various subtypes.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Oct 27, 2008
1 parent f8d56f1 commit 2a88b6e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arch/sh/oprofile/op_model_sh7750.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,9 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
return -ENODEV;

ops = &sh7750_perf_counter_ops;
ops->cpu_type = (char *)get_cpu_subtype(&current_cpu_data);
ops->cpu_type = "sh/sh7750";

printk(KERN_INFO "oprofile: using SH-4 (%s) performance monitoring.\n",
sh7750_perf_counter_ops.cpu_type);
printk(KERN_INFO "oprofile: using SH-4 performance monitoring.\n");

/* Clear the counters */
ctrl_outw(ctrl_inw(PMCR1) | PMCR_PMCLR, PMCR1);
Expand All @@ -270,4 +269,3 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
void oprofile_arch_exit(void)
{
}

0 comments on commit 2a88b6e

Please sign in to comment.