[PATCH] ftrace: remove unused tracing_sched_switch_enabled

From: Eugene Teo
Date: Sun Feb 10 2008 - 10:50:25 EST


tracing_sched_switch_enabled isn't used anywhere.

Signed-off-by: Eugene Teo <eugeneteo@xxxxxxxxx>
---
kernel/trace/trace.h | 1 -
kernel/trace/trace_sched_switch.c | 9 +--------
2 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index ac851b2..3173a93 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -138,7 +138,6 @@ void unregister_tracer(struct tracer *type);

extern unsigned long nsecs_to_usecs(unsigned long nsecs);

-extern int tracing_sched_switch_enabled;
extern unsigned long tracing_max_latency;
extern unsigned long tracing_thresh;

diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c
index 412c226..c4e0134 100644
--- a/kernel/trace/trace_sched_switch.c
+++ b/kernel/trace/trace_sched_switch.c
@@ -16,7 +16,6 @@

static struct trace_array *ctx_trace;
static int __read_mostly tracer_enabled;
-int __read_mostly tracing_sched_switch_enabled;

static void notrace
ctx_switch_func(struct task_struct *prev, struct task_struct *next)
@@ -114,12 +113,6 @@ __init static int init_sched_switch_trace(void)
{
int ret;

- ret = register_tracer(&sched_switch_trace);
- if (ret)
- return ret;
-
- tracing_sched_switch_enabled = 1;
-
- return ret;
+ return register_tracer(&sched_switch_trace);
}
device_initcall(init_sched_switch_trace);

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/