All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Grundler <grundler@parisc-linux.org>
To: parisc-linux@lists.parisc-linux.org
Subject: [parisc-linux] init_idle and local_irq_save
Date: Mon, 29 Mar 2004 09:03:57 -0700	[thread overview]
Message-ID: <20040329160357.GA31448@colo.lackof.org> (raw)

Hi all,
I'm trying to get 2.6 SMP working on a UP box and was walking
through the init sequence. I have two questions related to init_idle()
in kernel/sched.c:

o local_irq_save()/local_irq_restore are called without an
  obvious local_irq_disable() call in between. Is this really
  needed for some other reason or is the local_irq_disable() missing?

o double_rq_lock() acquires the locks with lowest address first.
  double_rq_unlock() does not release those in the inverse order.
  Is that a problem?
  I'm just nervous since I didn't see the local_irq_disable()
  in init_idle() which would guarantee both unlock's happen atomically.

thanks,
grant

             reply	other threads:[~2004-03-29 16:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-29 16:03 Grant Grundler [this message]
2004-03-29 16:17 ` [parisc-linux] init_idle and local_irq_save James Bottomley
2004-03-29 16:31 ` Matthew Wilcox

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=20040329160357.GA31448@colo.lackof.org \
    --to=grundler@parisc-linux.org \
    --cc=parisc-linux@lists.parisc-linux.org \
    /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.