Re: cpu_idle and cpu_wait

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> On Thu, 17 Nov 2005 11:21:45 +0900 (JST), Atsushi Nemoto <anemo@xxxxxxxxxxxxx> 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
MWAIT/MONITOR.

---
Atsushi Nemoto


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux