Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752790AbZA1OeV (ORCPT ); Wed, 28 Jan 2009 09:34:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751123AbZA1OeN (ORCPT ); Wed, 28 Jan 2009 09:34:13 -0500 Received: from mx2.redhat.com ([66.187.237.31]:59987 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750951AbZA1OeN (ORCPT ); Wed, 28 Jan 2009 09:34:13 -0500 Date: Wed, 28 Jan 2009 12:33:56 -0200 From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Jens Axboe , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , Linux Kernel Mailing List Subject: [PATCH tip 1/1] blktrace: Use tracing_reset_online_cpus Message-ID: <20090128143356.GG15877@ghostprotocols.net> Mail-Followup-To: Arnaldo Carvalho de Melo , Ingo Molnar , Jens Axboe , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , Linux Kernel Mailing List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Url: http://oops.ghostprotocols.net:81/blog User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 907 Lines: 30 Impact: cleanup Use tracing_reset_online_cpus instead of open coding it. Cc: Jens Axboe Signed-off-by: Arnaldo Carvalho de Melo diff --git a/block/blktrace.c b/block/blktrace.c index 1b2267c..04d81d3 100644 --- a/block/blktrace.c +++ b/block/blktrace.c @@ -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) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/