Re: Fw: [RFC] Strange code in cpu_idle()

From: Zwane Mwaikambo
Date: Mon Dec 06 2004 - 05:03:16 EST


On Mon, 6 Dec 2004, Stephen Rothwell wrote:

> On Mon, 6 Dec 2004 11:16:34 +1100 Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:
> >
> > > Thoughts?
> >
> > None, sorry :-)
>
> Actually, Rusty suggests stop_machine() ...

Hmm i believe there is a window with CONFIG_PREEMPT whereupon we read the
pm_idle pointer, get scheduled out to run the stopmachine thread and
return with the stale pointer.

Thanks,
Zwane

-
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/