Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173483
b: refs/heads/master
c: 093aed1
h: refs/heads/master
i:
  173481: b616060
  173479: 65c7396
v: v3
  • Loading branch information
Paul Mundt committed Nov 5, 2009
1 parent e1ed9f0 commit d0b5939
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 290 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: 1d823323f2e92287a07a25570aebf0b2d3864703
refs/heads/master: 093aed1937cc7ae9290ede24ad45f040e097510b
4 changes: 0 additions & 4 deletions trunk/arch/sh/oprofile/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,3 @@ DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \
timer_int.o )

oprofile-y := $(DRIVER_OBJS) common.o backtrace.o

oprofile-$(CONFIG_CPU_SUBTYPE_SH7750S) += op_model_sh7750.o
oprofile-$(CONFIG_CPU_SUBTYPE_SH7750) += op_model_sh7750.o
oprofile-$(CONFIG_CPU_SUBTYPE_SH7091) += op_model_sh7750.o
38 changes: 8 additions & 30 deletions trunk/arch/sh/oprofile/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
#include <asm/processor.h>
#include "op_impl.h"

extern struct op_sh_model op_model_sh7750_ops __weak;
extern struct op_sh_model op_model_sh4a_ops __weak;

static struct op_sh_model *model;

static struct op_counter_config ctr[20];
Expand Down Expand Up @@ -94,33 +91,14 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
*/
ops->backtrace = sh_backtrace;

switch (current_cpu_data.type) {
/* SH-4 types */
case CPU_SH7750:
case CPU_SH7750S:
lmodel = &op_model_sh7750_ops;
break;

/* SH-4A types */
case CPU_SH7763:
case CPU_SH7770:
case CPU_SH7780:
case CPU_SH7781:
case CPU_SH7785:
case CPU_SH7786:
case CPU_SH7723:
case CPU_SH7724:
case CPU_SHX3:
lmodel = &op_model_sh4a_ops;
break;

/* SH4AL-DSP types */
case CPU_SH7343:
case CPU_SH7722:
case CPU_SH7366:
lmodel = &op_model_sh4a_ops;
break;
}
/*
* XXX
*
* All of the SH7750/SH-4A counters have been converted to perf,
* this infrastructure hook is left for other users until they've
* had a chance to convert over, at which point all of this
* will be deleted.
*/

if (!lmodel)
return -ENODEV;
Expand Down
255 changes: 0 additions & 255 deletions trunk/arch/sh/oprofile/op_model_sh7750.c

This file was deleted.

0 comments on commit d0b5939

Please sign in to comment.