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

From: Steven Rostedt
Date: Mon Dec 20 2010 - 11:19:20 EST


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?

-- Steve



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