diff options
author | Steven Rostedt <srostedt@redhat.com> | 2008-11-07 22:36:02 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-08 03:51:39 -0500 |
commit | c76f06945be50564f925799ddfb6235ee4c26aa0 (patch) | |
tree | 941aaf84dd36096d7fb013f1e4be28bb8f2ac598 /kernel/trace/trace_mmiotrace.c | |
parent | bbf5b1a0cecb56de6236db8b01c5bfb7ab8ba8b2 (diff) |
ftrace: remove trace array ctrl
Impact: remove obsolete variable in trace_array structure
With the new start / stop method of ftrace, the ctrl variable
in the trace_array structure is now obsolete. Remove it.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_mmiotrace.c')
-rw-r--r-- | kernel/trace/trace_mmiotrace.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/kernel/trace/trace_mmiotrace.c b/kernel/trace/trace_mmiotrace.c index fa9354e78b57..51bcf370215e 100644 --- a/kernel/trace/trace_mmiotrace.c +++ b/kernel/trace/trace_mmiotrace.c | |||
@@ -34,17 +34,16 @@ static void mmio_trace_init(struct trace_array *tr) | |||
34 | { | 34 | { |
35 | pr_debug("in %s\n", __func__); | 35 | pr_debug("in %s\n", __func__); |
36 | mmio_trace_array = tr; | 36 | mmio_trace_array = tr; |
37 | if (tr->ctrl) { | 37 | |
38 | mmio_reset_data(tr); | 38 | mmio_reset_data(tr); |
39 | enable_mmiotrace(); | 39 | enable_mmiotrace(); |
40 | } | ||
41 | } | 40 | } |
42 | 41 | ||
43 | static void mmio_trace_reset(struct trace_array *tr) | 42 | static void mmio_trace_reset(struct trace_array *tr) |
44 | { | 43 | { |
45 | pr_debug("in %s\n", __func__); | 44 | pr_debug("in %s\n", __func__); |
46 | if (tr->ctrl) | 45 | |
47 | disable_mmiotrace(); | 46 | disable_mmiotrace(); |
48 | mmio_reset_data(tr); | 47 | mmio_reset_data(tr); |
49 | mmio_trace_array = NULL; | 48 | mmio_trace_array = NULL; |
50 | } | 49 | } |