Re: [RFC PATCH 03/15] nohz_task: Make tick stop and restartcallable outside idle

From: Frederic Weisbecker
Date: Mon Dec 20 2010 - 20:34:49 EST


On Mon, Dec 20, 2010 at 05:25:11PM +0100, Peter Zijlstra wrote:
> On Mon, 2010-12-20 at 11:19 -0500, Steven Rostedt wrote:
> > On Mon, 2010-12-20 at 16:48 +0100, Peter Zijlstra wrote:
> > > On Mon, 2010-12-20 at 16:24 +0100, Frederic Weisbecker wrote:
> > > > + if (!current->pid)
> > >
> > > I'm not exactly sure that's the sanest way to test if you're the idle
> > > thread...
> >
> > Would
> >
> > if (idle_cpu(cpu))
> >
> > be better?
>
> Lots ;-)

I wondered about that too, will update.

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