From: Takashi Iwai Subject: Re: [PATCH] Huge AZT3328 driver update Date: Mon, 24 Oct 2005 14:59:55 +0200 Message-ID: References: <20051023175734.GA14252@rhlx01.fht-esslingen.de> <20051024125339.GA28898@rhlx01.fht-esslingen.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20051024125339.GA28898@rhlx01.fht-esslingen.de> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Andreas Mohr Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Mon, 24 Oct 2005 14:53:39 +0200, Andreas Mohr wrote: > > Hi, > > On Mon, Oct 24, 2005 at 02:43:58PM +0200, Takashi Iwai wrote: > > At Sun, 23 Oct 2005 19:57:34 +0200, > > Andreas Mohr wrote: > > > + reg_lock_ptr = &chip->reg_lock; > > > > Better to use the conventional style, spin_lock(&foo->lock). > Well, in your definition of "Better" ;) > My definition of "Better" usually is what's faster, unless it's dirt ugly. > (and that particular trick saves one memory addressing instruction, and > that instruction would have been *within* the locked area, too) It's uncoventional, and decreases the readability a lot. That would beat such a minimal performance gain. Takashi ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information