From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: spin_lock_irqwhat ? Date: Mon, 10 May 2004 11:25:59 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20040508133641.0af22ec8.pochini@shiny.it> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Clemens Ladisch Cc: Giuliano Pochini , Alsa-devel List-Id: alsa-devel@alsa-project.org At Mon, 10 May 2004 10:31:07 +0200 (METDST), Clemens Ladisch wrote: > > Giuliano Pochini wrote: > > Some drivers use spin_lock_irq() a lot, while others always use > > spin_lock_irqsave(). I can't see the difference. When it's safe > > using the _irq() version ? > > Only when you know that you are not in interrupt context. also, not in the context which already disabled irq. Takashi ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3