| To: | Atsushi Nemoto <anemo@mba.ocn.ne.jp> |
|---|---|
| Subject: | Re: cpu_idle and cpu_wait |
| From: | Ralf Baechle <ralf@linux-mips.org> |
| Date: | Sun, 10 Sep 2006 02:18:03 +0200 |
| Cc: | linux-mips@linux-mips.org |
| In-reply-to: | <20060608.010901.108121387.anemo@mba.ocn.ne.jp> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20051117.011906.25910026.anemo@mba.ocn.ne.jp> <20051116184201.GJ3229@linux-mips.org> <20051118.122242.07017522.nemoto@toshiba-tops.co.jp> <20060608.010901.108121387.anemo@mba.ocn.ne.jp> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.4.2.1i |
On Thu, Jun 08, 2006 at 01:09:01AM +0900, Atsushi Nemoto wrote: > [MIPS] reduce race between cpu_wait() and need_resched() checking > > If a thread became runnable between need_resched() and the WAIT > instruction, switching to the thread will delay until a next interrupt. > Some CPUs can execute the WAIT instruction with interrupt disabled, so > we can get rid of this race on them (at least UP case). Applied but based on feedback from the 4K and 5K CPU designers I modified your patch to continue using the old code. Ralf |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] RM9000 serial driver, Sergei Shtylyov |
|---|---|
| Next by Date: | Re: cpu_idle and cpu_wait, Atsushi Nemoto |
| Previous by Thread: | Re: [PATCH] RM9000 serial driver, Sergei Shtylyov |
| Next by Thread: | Re: cpu_idle and cpu_wait, Atsushi Nemoto |
| Indexes: | [Date] [Thread] [Top] [All Lists] |