[PATCH 1/3] drivers: base: Add frequency constraint infrastructure

2019-01-11 Thread Viresh Kumar
This commit introduces the frequency constraint infrastructure, which provides a generic interface for parts of the kernel to constraint the working frequency range of a device. The primary users of this are the cpufreq and devfreq frameworks. The cpufreq framework already implements such constrai

Re: [PATCH 1/3] drivers: base: Add frequency constraint infrastructure

2019-01-21 Thread Viresh Kumar
On 18-01-19, 14:45, Matthias Kaehlcke wrote: > On Fri, Jan 18, 2019 at 03:32:34PM +0530, Viresh Kumar wrote: > > On 17-01-19, 17:03, Matthias Kaehlcke wrote: > > > On Fri, Jan 11, 2019 at 02:48:34PM +0530, Viresh Kumar wrote: > > > > +static void fcs_update(struct freq_constraints *fcs, struct freq

Re: [PATCH 1/3] drivers: base: Add frequency constraint infrastructure

2019-01-22 Thread Matthias Kaehlcke
On Tue, Jan 22, 2019 at 12:39:36PM +0530, Viresh Kumar wrote: > On 18-01-19, 14:45, Matthias Kaehlcke wrote: > > On Fri, Jan 18, 2019 at 03:32:34PM +0530, Viresh Kumar wrote: > > > On 17-01-19, 17:03, Matthias Kaehlcke wrote: > > > > On Fri, Jan 11, 2019 at 02:48:34PM +0530, Viresh Kumar wrote: > >

Re: [PATCH 1/3] drivers: base: Add frequency constraint infrastructure

2019-01-17 Thread Matthias Kaehlcke
Hi Viresh, Thanks for your work on this! Not a complete review, more a first pass. On Fri, Jan 11, 2019 at 02:48:34PM +0530, Viresh Kumar wrote: > This commit introduces the frequency constraint infrastructure, which > provides a generic interface for parts of the kernel to constraint the > work

Re: [PATCH 1/3] drivers: base: Add frequency constraint infrastructure

2019-01-18 Thread Viresh Kumar
On 17-01-19, 17:03, Matthias Kaehlcke wrote: > On Fri, Jan 11, 2019 at 02:48:34PM +0530, Viresh Kumar wrote: > > +static void fcs_update(struct freq_constraints *fcs, struct freq_pair > > *freq, > > + enum fc_event event) > > +{ > > + mutex_lock(&fcs->lock); > > + > > + if (_f

Re: [PATCH 1/3] drivers: base: Add frequency constraint infrastructure

2019-01-18 Thread Matthias Kaehlcke
On Fri, Jan 18, 2019 at 03:32:34PM +0530, Viresh Kumar wrote: > On 17-01-19, 17:03, Matthias Kaehlcke wrote: > > On Fri, Jan 11, 2019 at 02:48:34PM +0530, Viresh Kumar wrote: > > > +static void fcs_update(struct freq_constraints *fcs, struct freq_pair > > > *freq, > > > +enum fc_ev