linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Saxena, Sunil" <sunil.saxena@intel.com>
To: "Zwane Mwaikambo" <zwane@arm.linux.org.uk>,
	"Nakajima, Jun" <jun.nakajima@intel.com>
Cc: "Linus Torvalds" <torvalds@osdl.org>,
	<linux-kernel@vger.kernel.org>,
	"Mallick, Asit K" <asit.k.mallick@intel.com>,
	"Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>
Subject: RE: [PATCH] idle using PNI monitor/mwait
Date: Wed, 9 Jul 2003 18:17:32 -0700	[thread overview]
Message-ID: <763EDB03559AA1428E4D41045B43F17B0304D8C4@fmsmsx406.fm.intel.com> (raw)

Thermal advantages may be there and like "pause" they would be
implementation specific.

Thanks
Sunil

-----Original Message-----
From: Zwane Mwaikambo [mailto:zwane@arm.linux.org.uk] 
Sent: Tuesday, July 08, 2003 11:42 PM
To: Nakajima, Jun
Cc: Linus Torvalds; linux-kernel@vger.kernel.org; Saxena, Sunil;
Mallick, Asit K; Pallipadi, Venkatesh
Subject: RE: [PATCH] idle using PNI monitor/mwait

On Tue, 8 Jul 2003, Nakajima, Jun wrote:

> That's right. If we have a lot of high-contention locks in the kernel,
> we need to fix the code first, to get benefits for the other
> architectures. 
> 
> "mwait" granularity (64-byte, for example) is given by the cpuid
> instruction, and we did not use it because 1) it's unlikely that the
> other fields of the task structure are modified when it's idle, 2) the
> processor needs to check the flag after mwait anyway, to avoid waking
up
> with a false signal caused by other break events (i.e. mwait is a
hint).

It could still be very handy for polling loops of the form;

while (!ready)
	__asm__ ("pause;");

Jun would there be any thermal advantages over using poll and pause ?

Thanks,
	Zwane
-- 
function.linuxpower.ca

             reply	other threads:[~2003-07-10  1:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-10  1:17 Saxena, Sunil [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-07-09 17:01 [PATCH] idle using PNI monitor/mwait Mallick, Asit K
2003-07-09 16:39 Mallick, Asit K
2003-07-09  0:35 Nakajima, Jun
2003-07-09  6:41 ` Zwane Mwaikambo
2003-07-08 21:23 Nakajima, Jun
2003-07-08 23:34 ` Linus Torvalds
2003-07-09 10:59 ` Alan Cox

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=763EDB03559AA1428E4D41045B43F17B0304D8C4@fmsmsx406.fm.intel.com \
    --to=sunil.saxena@intel.com \
    --cc=asit.k.mallick@intel.com \
    --cc=jun.nakajima@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    --cc=venkatesh.pallipadi@intel.com \
    --cc=zwane@arm.linux.org.uk \
    /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;
as well as URLs for NNTP newsgroup(s).