From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753529AbZKPVZK (ORCPT ); Mon, 16 Nov 2009 16:25:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751929AbZKPVZJ (ORCPT ); Mon, 16 Nov 2009 16:25:09 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:37937 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751291AbZKPVZH (ORCPT ); Mon, 16 Nov 2009 16:25:07 -0500 Date: Mon, 16 Nov 2009 22:24:27 +0100 From: Ingo Molnar To: Mike Travis Cc: Thomas Gleixner , Andrew Morton , Heiko Carstens , Roland Dreier , Randy Dunlap , Tejun Heo , Andi Kleen , Greg Kroah-Hartman , Yinghai Lu , "H. Peter Anvin" , David Rientjes , Steven Rostedt , Rusty Russell , Hidetoshi Seto , Jack Steiner , Frederic Weisbecker , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/6] INIT: Limit the number of per cpu calibration bootup messages Message-ID: <20091116212427.GC2221@elte.hu> References: <20091116210718.412792000@alcatraz.americas.sgi.com> <20091116210728.267482000@alcatraz.americas.sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091116210728.267482000@alcatraz.americas.sgi.com> User-Agent: Mutt/1.5.20 (2009-08-17) X-ELTE-SpamScore: -2.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-2.0 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.5 -2.0 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mike Travis wrote: > --- linux.orig/init/calibrate.c > +++ linux/init/calibrate.c > @@ -123,23 +123,26 @@ > { > unsigned long ticks, loopbit; > int lps_precision = LPS_PREC; > + bool boot_cpu = (smp_processor_id() == 0); this code is shared by other architectures too - are you sure smp_processor_id()==0 is a proper 'I am the boot CPU' assumption everywhere? Ingo