mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Robert Love <rml@tech9.net>
To: sridharv@ufl.edu
Cc: linux-kernel@vger.kernel.org
Subject: Re: interrupt - spin lock question
Date: 04 Mar 2002 02:19:09 -0500	[thread overview]
Message-ID: <1015226350.15281.0.camel@phantasy> (raw)
In-Reply-To: <1015223610.3c83153a33024@webmail.health.ufl.edu>
In-Reply-To: <1015219129.3c8303b9e87a7@webmail.health.ufl.edu> <1015219669.868.35.camel@phantasy>  <1015223610.3c83153a33024@webmail.health.ufl.edu>

On Mon, 2002-03-04 at 01:33, sridharv@ufl.edu wrote:

> ok things are clear now. so the spin_lock_irq friends are actually for 2 
> purposes - preventing racing from interrupts and from SMP. so if SMP is not 
> chosen only the local_irq_disable() part works right??
> 
> do { local_irq_disable();         spin_lock(lock); } while (0)

Correct.  Although, you would want to use spin_lock_irqsave most of the
time, not spin_lock_irq (difference is, the stored flags value is used
to restore interrupts to there previous condition instead of
unconditionally reenable them).

Btw, Go Gators!

	Robert Love


  parent reply	other threads:[~2002-03-04  7:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-04  5:18 sridharv
2002-03-04  5:27 ` Robert Love
2002-03-04  6:33   ` sridharv
2002-03-04  7:19   ` Robert Love [this message]
2002-03-04  6:32 ` Kittur Sameer

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=1015226350.15281.0.camel@phantasy \
    --to=rml@tech9.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sridharv@ufl.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®