From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755671AbZEUXrx (ORCPT ); Thu, 21 May 2009 19:47:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753285AbZEUXro (ORCPT ); Thu, 21 May 2009 19:47:44 -0400 Received: from mx2.redhat.com ([66.187.237.31]:37474 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752228AbZEUXro (ORCPT ); Thu, 21 May 2009 19:47:44 -0400 Date: Thu, 21 May 2009 19:47:26 -0400 From: Dave Jones To: Joe Perches Cc: linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, Greg Kroah-Hartman , "H. Peter Anvin" , Ingo Molnar , x86@vger.kernel.org, Len Brown , Mike Travis , Rusty Russell , Thomas Gleixner , Venkatesh Pallipadi Subject: Re: [PATCH 2/3] arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c: Use DO_ONCE & spelling fix Message-ID: <20090521234726.GA24695@redhat.com> Mail-Followup-To: Dave Jones , Joe Perches , linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, Greg Kroah-Hartman , "H. Peter Anvin" , Ingo Molnar , x86@vger.kernel.org, Len Brown , Mike Travis , Rusty Russell , Thomas Gleixner , Venkatesh Pallipadi References: <20090521232604.GA26150@redhat.com> <1242948841.3373.145.camel@Joe-Laptop.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1242948841.3373.145.camel@Joe-Laptop.home> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 21, 2009 at 04:34:01PM -0700, Joe Perches wrote: > On Thu, 2009-05-21 at 19:26 -0400, Dave Jones wrote: > > On Thu, May 21, 2009 at 04:00:23PM -0700, Joe Perches wrote: > > > diff --git a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c b/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c > > > index 208ecf6..f569cff 100644 > > > --- a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c > > > +++ b/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c > > > @@ -693,8 +693,8 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy) > > > if (perf->control_register.space_id == ACPI_ADR_SPACE_FIXED_HARDWARE && > > > policy->cpuinfo.transition_latency > 20 * 1000) { > > > policy->cpuinfo.transition_latency = 20 * 1000; > > > - printk_once(KERN_INFO "Capping off P-state tranision" > > > - " latency at 20 uS\n"); > > > + DO_ONCE(printk(KERN_INFO > > > + "P-state transition latency capped at 20 uS\n")); > > > > ewww. This looks pretty ugly to me. Anyone else? > > What look ugly? > > The macro use or the newline between KERN_INFO and "P-" > or the reformatting of the quoted string? I just think it's a less readable variant of the same thing. The shouty macro, the extra level of brackets, the whole thing just seems to be ugly to me with no redeeming feature. What does doing this change really bring us? Dave