Re: [RFC] Extend mwait idle to optimize away IPIs when possible

From: Yong Zhang
Date: Tue Feb 14 2012 - 21:00:46 EST


On Tue, Feb 14, 2012 at 02:52:17PM +0100, Peter Zijlstra wrote:
> On Mon, 2012-02-13 at 13:34 +0800, Yong Zhang wrote:
> > Yeah, most of the things could be shared. Such as the added logic when
> > return from idle and the hooks into ttwu_queue_remote() and
> > generic_exec_single().
> >
>
> The thing is, those last two should not have hooks.

Yeah, it's general place; and smp_need_ipi() plays well.

> Nor am I convinced
> anything outside of the arch idle loop should have any.

'idle loop' is the key point :)

Thanks,
Yong
--
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/