Skip to content

Commit 093aed1

Browse files
committed
sh: oprofile: Kill off bitrotted SH7750 driver.
This kills off the old SH7750 oprofile driver, preferring perf instead. As this driver has a number of bugs that no one seems to have noticed, it's safe to kill this off now rather than providing an extended transition period. The old oprofile framework is still kept in place for now, primarily to give out-of-tree drivers a chance to transition off. But this too will be killed off in short order. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent 1d82332 commit 093aed1

3 files changed

Lines changed: 8 additions & 289 deletions

File tree

‎arch/sh/oprofile/Makefile‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,3 @@ DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \
77
timer_int.o )
88

99
oprofile-y := $(DRIVER_OBJS) common.o backtrace.o
10-
11-
oprofile-$(CONFIG_CPU_SUBTYPE_SH7750S) += op_model_sh7750.o
12-
oprofile-$(CONFIG_CPU_SUBTYPE_SH7750) += op_model_sh7750.o
13-
oprofile-$(CONFIG_CPU_SUBTYPE_SH7091) += op_model_sh7750.o

‎arch/sh/oprofile/common.c‎

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
#include <asm/processor.h>
2121
#include "op_impl.h"
2222

23-
extern struct op_sh_model op_model_sh7750_ops __weak;
24-
extern struct op_sh_model op_model_sh4a_ops __weak;
25-
2623
static struct op_sh_model *model;
2724

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

97-
switch (current_cpu_data.type) {
98-
/* SH-4 types */
99-
case CPU_SH7750:
100-
case CPU_SH7750S:
101-
lmodel = &op_model_sh7750_ops;
102-
break;
103-
104-
/* SH-4A types */
105-
case CPU_SH7763:
106-
case CPU_SH7770:
107-
case CPU_SH7780:
108-
case CPU_SH7781:
109-
case CPU_SH7785:
110-
case CPU_SH7786:
111-
case CPU_SH7723:
112-
case CPU_SH7724:
113-
case CPU_SHX3:
114-
lmodel = &op_model_sh4a_ops;
115-
break;
116-
117-
/* SH4AL-DSP types */
118-
case CPU_SH7343:
119-
case CPU_SH7722:
120-
case CPU_SH7366:
121-
lmodel = &op_model_sh4a_ops;
122-
break;
123-
}
94+
/*
95+
* XXX
96+
*
97+
* All of the SH7750/SH-4A counters have been converted to perf,
98+
* this infrastructure hook is left for other users until they've
99+
* had a chance to convert over, at which point all of this
100+
* will be deleted.
101+
*/
124102

125103
if (!lmodel)
126104
return -ENODEV;

‎arch/sh/oprofile/op_model_sh7750.c‎

Lines changed: 0 additions & 255 deletions
This file was deleted.

0 commit comments

Comments
 (0)