Re: [RFC PATCH v1 00/11] Create fast idle path for short idle periods

Andi Kleen
2017-07-12T21:32:43Z

On Wed, Jul 12, 2017 at 10:34:10AM +0200, Peter Zijlstra wrote:
> On Wed, Jul 12, 2017 at 12:15:08PM +0800, Li, Aubrey wrote:
> > Okay, the difference is that Mike's patch uses a very simple algorithm to make the decision.
>
> No, the difference is that we don't end up with duplication of a metric
> ton of code.

What do you mean? There isn't much duplication from the fast path
in Aubrey's patch kit.

It just moves some code around from the cpuidle governor to be generic,
that accounts for the bulk of the changes. It's just moving however,
not adding.

> It uses the normal idle path, it just makes the NOHZ enter fail.

Which is only a small part of the problem.

-Andi