[Top] [All Lists]

Re: cpu_idle and cpu_wait

Subject: Re: cpu_idle and cpu_wait
From: Atsushi Nemoto <>
Date: Thu, 17 Nov 2005 16:08:33 +0900 (JST)
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <>
>>>>> On Thu, 17 Nov 2005 11:21:45 +0900 (JST), Atsushi Nemoto 
>>>>> <> said:
anemo> And I checked x86 implemetation and found that HLT or MWAIT
anemo> instruction also must be used with interrupts enabled.  So IIUC
anemo> it seems x86 have same latency problem too.

No, I was wrong.  MWAIT (and MONITOR) instruction provides something
like "test and wait" mechanism.  mwait_idle() is using them for
thread_flag, so there is no latency problem on processors which have

Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>