Re: [PATCH v8] powercap/drivers/idle_injection: Add an idle injection framework

2018-06-19 Thread Viresh Kumar
On 19-06-18, 10:00, Daniel Lezcano wrote: > On 19/06/2018 08:22, Viresh Kumar wrote: > > On 19-06-18, 07:58, Daniel Lezcano wrote: > >> +++ b/drivers/powercap/idle_injection.c > >> @@ -0,0 +1,375 @@ > >> +// SPDX-License-Identifier: GPL-2.0 > >> +/* > >> + * Copyright 2018 Linaro Limited > >> + * >

Re: [PATCH v8] powercap/drivers/idle_injection: Add an idle injection framework

2018-06-19 Thread Daniel Lezcano
On 19/06/2018 08:22, Viresh Kumar wrote: > On 19-06-18, 07:58, Daniel Lezcano wrote: >> +++ b/drivers/powercap/idle_injection.c >> @@ -0,0 +1,375 @@ >> +// SPDX-License-Identifier: GPL-2.0 >> +/* >> + * Copyright 2018 Linaro Limited >> + * >> + * Author: Daniel Lezcano >> + * >> + * The idle injec

Re: [PATCH v8] powercap/drivers/idle_injection: Add an idle injection framework

2018-06-18 Thread Viresh Kumar
On 19-06-18, 07:58, Daniel Lezcano wrote: > +++ b/drivers/powercap/idle_injection.c > @@ -0,0 +1,375 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright 2018 Linaro Limited > + * > + * Author: Daniel Lezcano > + * > + * The idle injection framework proposes a way to force a cpu to ente

[PATCH v8] powercap/drivers/idle_injection: Add an idle injection framework

2018-06-18 Thread Daniel Lezcano
Initially, the cpu_cooling device for ARM was changed by adding a new policy inserting idle cycles. The intel_powerclamp driver does a similar action. Instead of implementing idle injections privately in the cpu_cooling device, move the idle injection code in a dedicated framework and give the opp