From: Jamie Lokier <jamie@shareable.org>
To: "Nakajima, Jun" <jun.nakajima@intel.com>
Cc: Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org, "Saxena,
Sunil" <sunil.saxena@intel.com>,
"Mallick, Asit K" <asit.k.mallick@intel.com>,
"Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>
Subject: Re: [PATCH] idle using PNI monitor/mwait (take 2)
Date: Fri, 5 Sep 2003 23:03:30 +0100 [thread overview]
Message-ID: <20030905220330.GA6900@mail.jlokier.co.uk> (raw)
In-Reply-To: <20030905211428.GB6019@mail.jlokier.co.uk>
Jamie Lokier wrote:
> local_irq_disable() isn't required in the monitor/mwait loop, because
> you check need_resched between the monitor and mwait. (If Intel had
> implemented monitor+mwait as a single instruction, then you'd need it).
>
> So you can remove it from your loop.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Excuse me, I hadn't looked at your code closely. Everything I said up
to that last line is fine. But the last line doesn't apply because
you don't have a local_irq_disable().
You can remove your local_irq_enable() instead, if you want, but for
a different reason. That one _is_ defensive. :)
-- Jamie
next prev parent reply other threads:[~2003-09-05 22:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-05 20:41 Nakajima, Jun
2003-09-05 21:14 ` Jamie Lokier
2003-09-05 22:03 ` Jamie Lokier [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-09-06 1:03 Nakajima, Jun
2003-09-06 9:58 ` Jamie Lokier
2003-09-05 2:19 Nakajima, Jun
2003-09-05 17:14 ` Andrew Morton
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=20030905220330.GA6900@mail.jlokier.co.uk \
--to=jamie@shareable.org \
--cc=akpm@osdl.org \
--cc=asit.k.mallick@intel.com \
--cc=jun.nakajima@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sunil.saxena@intel.com \
--cc=venkatesh.pallipadi@intel.com \
/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®