diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-01-28 09:33:56 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-29 08:28:30 -0500 |
commit | 700a3dcb9036d17d3a67d0a7ceee9d4373fbb570 (patch) | |
tree | ff3d7daf41c646c22e2a877a8d97fd466ac3c4fe /block | |
parent | ce181ebeff398e7d1a9c6cb92eb035a6d2d07489 (diff) |
blktrace: Use tracing_reset_online_cpus
Impact: cleanup
Use tracing_reset_online_cpus instead of open coding it.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'block')
-rw-r--r-- | block/blktrace.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/block/blktrace.c b/block/blktrace.c index 1b2267c798b6..04d81d31fd94 100644 --- a/block/blktrace.c +++ b/block/blktrace.c | |||
@@ -1109,12 +1109,7 @@ static void blk_tracer_print_header(struct seq_file *m) | |||
1109 | 1109 | ||
1110 | static void blk_tracer_start(struct trace_array *tr) | 1110 | static void blk_tracer_start(struct trace_array *tr) |
1111 | { | 1111 | { |
1112 | int cpu; | 1112 | tracing_reset_online_cpus(tr); |
1113 | |||
1114 | tr->time_start = ftrace_now(tr->cpu); | ||
1115 | |||
1116 | for_each_online_cpu(cpu) | ||
1117 | tracing_reset(tr, cpu); | ||
1118 | 1113 | ||
1119 | mutex_lock(&blk_probe_mutex); | 1114 | mutex_lock(&blk_probe_mutex); |
1120 | if (atomic_add_return(1, &blk_probes_ref) == 1) | 1115 | if (atomic_add_return(1, &blk_probes_ref) == 1) |