[Top] [All Lists]

Re: cpu_idle and cpu_wait

To: Atsushi Nemoto <>
Subject: Re: cpu_idle and cpu_wait
From: Ralf Baechle <>
Date: Sun, 10 Sep 2006 02:18:03 +0200
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <>
User-agent: Mutt/
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.


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