From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756551AbZEVHBT (ORCPT ); Fri, 22 May 2009 03:01:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751524AbZEVHBL (ORCPT ); Fri, 22 May 2009 03:01:11 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:43510 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750916AbZEVHBL (ORCPT ); Fri, 22 May 2009 03:01:11 -0400 Date: Fri, 22 May 2009 08:01:11 +0100 From: Al Viro To: Joe Perches Cc: linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, Dave Jones , Greg Kroah-Hartman , "H. Peter Anvin" , Ingo Molnar , x86@kernel.org, Len Brown , Mike Travis , Rusty Russell , Thomas Gleixner , Venkatesh Pallipadi , Alan Cox Subject: Re: [PATCH V2 0/3] Introduce and use DO_ONCE statement expression macro Message-ID: <20090522070111.GZ8633@ZenIV.linux.org.uk> References: <20090522052652.GX8633@ZenIV.linux.org.uk> <1242970756.3284.18.camel@Joe-Laptop.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1242970756.3284.18.camel@Joe-Laptop.home> 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 On Thu, May 21, 2009 at 10:39:16PM -0700, Joe Perches wrote: > On Fri, 2009-05-22 at 06:26 +0100, Al Viro wrote: > > Your DO_ONCE(....) parses as "what the fuck is that?" followed by > > grepping for definition, and the cost is much higher. > > So what do you suggest? > > #define pr_info_once(fmt, args...) printk_once(KERN_INFO pr_fmt(fmt), ##args) > #define pr_warning_once(fmt, args...) printk_once(KERN_WARNING pr_fmt(fmt), ##args) > etc That would be much saner.