Skip to content

Commit 700a3dc

Browse files
acmelIngo Molnar
authored andcommitted
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>
1 parent ce181eb commit 700a3dc

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎block/blktrace.c‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,12 +1109,7 @@ static void blk_tracer_print_header(struct seq_file *m)
11091109

11101110
static void blk_tracer_start(struct trace_array *tr)
11111111
{
1112-
int cpu;
1113-
1114-
tr->time_start = ftrace_now(tr->cpu);
1115-
1116-
for_each_online_cpu(cpu)
1117-
tracing_reset(tr, cpu);
1112+
tracing_reset_online_cpus(tr);
11181113

11191114
mutex_lock(&blk_probe_mutex);
11201115
if (atomic_add_return(1, &blk_probes_ref) == 1)

0 commit comments

Comments
 (0)