All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: Giuliano Pochini <pochini@shiny.it>,
	Alsa-devel <alsa-devel@lists.sourceforge.net>
Subject: Re: spin_lock_irqwhat ?
Date: Mon, 10 May 2004 11:25:59 +0200	[thread overview]
Message-ID: <s5h3c68hbvc.wl@alsa2.suse.de> (raw)
In-Reply-To: <Pine.HPX.4.33n.0405101029540.25310-100000@studcom.urz.uni-halle.de>

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

  reply	other threads:[~2004-05-10  9:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-08 11:36 spin_lock_irqwhat ? Giuliano Pochini
2004-05-10  8:31 ` Clemens Ladisch
2004-05-10  9:25   ` Takashi Iwai [this message]
2004-05-10 14:51     ` Giuliano Pochini
2004-05-10 15:08       ` Takashi Iwai
2004-05-13  7:31         ` Giuliano Pochini
2004-05-13 18:57         ` Giuliano Pochini
2004-05-14 10:37           ` Takashi Iwai
2004-05-15 21:37             ` Giuliano Pochini
2004-05-16 15:00               ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5h3c68hbvc.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=clemens@ladisch.de \
    --cc=pochini@shiny.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.