Re: [PATCH] disable irq's and check need_resched before safe_halt

From: Ken Chen <kenchen_at_google.com>
Date: 2007-08-08 07:26:16
On 8/7/07, Luck, Tony <tony.luck@intel.com> wrote:
> This looks like it re-introduces code that Ken Chen backed out
> about two years ago.  Here's Ken's commit that explains what
> broke last time we made the idle loop look like this.  Now
> that code was wider ranging ... messing with TIF bits too,
> so maybe this is different this time?

Yeah, I think the TIF flag was the key in fixing the resched IPI
notification.  The change in default_idle() is an optimization.

I'm horrified to see the same code coming back: doing interrupt
enable/disable in the most inner while loop.  Disable interrupt is
just crude, but I suppose that's the only way to resolve the race
condition?  Looking at other arch like x86_64, it is also doing the
same thing.

- Ken
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Aug 08 07:28:20 2007

This archive was generated by hypermail 2.1.8 : 2007-08-08 07:28:53 EST