Skip to content

Commit

Permalink
blktrace: Use tracing_reset_online_cpus
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnaldo Carvalho de Melo authored and Ingo Molnar committed Jan 29, 2009
1 parent ce181eb commit 700a3dc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions block/blktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1109,12 +1109,7 @@ static void blk_tracer_print_header(struct seq_file *m)

static void blk_tracer_start(struct trace_array *tr)
{
int cpu;

tr->time_start = ftrace_now(tr->cpu);

for_each_online_cpu(cpu)
tracing_reset(tr, cpu);
tracing_reset_online_cpus(tr);

mutex_lock(&blk_probe_mutex);
if (atomic_add_return(1, &blk_probes_ref) == 1)
Expand Down

0 comments on commit 700a3dc

Please sign in to comment.