Re: [PATCH] Remove RCU abuse in cpu_idle()

From: Nish Aravamudan
Date: Sun Dec 19 2004 - 21:33:02 EST


On Sun, 19 Dec 2004 19:10:31 -0700 (MST), Zwane Mwaikambo
<zwane@xxxxxxxxxxxxxxxx> wrote:
> On Mon, 20 Dec 2004, Nick Piggin wrote:
>
> > On Sun, 2004-12-19 at 18:44 -0700, Zwane Mwaikambo wrote:
> > > On Mon, 20 Dec 2004, Nick Piggin wrote:
> > >
> > > > This thread can possibly be stalled forever if there is a CPU hog
> > > > running, right?
> > >
> > > Yep.
> > >
> > > > In which case, you will want to use ssleep rather than a busy loop.
> > >
> > > Well ssleep essentially does the same thing as the schedule_timeout.
> > >
> >
> > Yes - so long as you set ->state when using schedule_timeout ;)
>
> Nish could you please submit something to switch it to ssleep?

Yup, I'll send it out tomorrow.

-Nish
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/