Re: [RFC 1/4] cpuidle: define the enter function in the driver structure

2012-06-14 Thread Daniel Lezcano
On 06/14/2012 09:49 AM, Namhyung Kim wrote: > Hi, > > On Fri, 8 Jun 2012 18:02:42 +0200, Daniel Lezcano wrote: >> We have the state index passed as parameter to the 'enter' function. >> Most of the drivers assign their 'enter' functions several times in >> the cpuidle_state structure, as we have

Re: [RFC 1/4] cpuidle: define the enter function in the driver structure

2012-06-14 Thread Namhyung Kim
Hi, On Fri, 8 Jun 2012 18:02:42 +0200, Daniel Lezcano wrote: > We have the state index passed as parameter to the 'enter' function. > Most of the drivers assign their 'enter' functions several times in > the cpuidle_state structure, as we have the index, we can delegate > to the driver to handle

Re: [linux-pm] [RFC 1/4] cpuidle: define the enter function in the driver structure

2012-06-13 Thread Daniel Lezcano
On 06/13/2012 02:44 PM, Jean Pihet wrote: > Hi Daniel, > > On Fri, Jun 8, 2012 at 11:34 PM, Daniel Lezcano > wrote: >> On 06/08/2012 07:33 PM, Deepthi Dharwar wrote: >>> Hi Daniel, >> >> Hi Deepthi, >> >>> On 06/08/2012 09:32 PM, Daniel Lezcano wrote: >>> We have the state index passed as pa

Re: [linux-pm] [RFC 1/4] cpuidle: define the enter function in the driver structure

2012-06-13 Thread Jean Pihet
Hi Daniel, On Fri, Jun 8, 2012 at 11:34 PM, Daniel Lezcano wrote: > On 06/08/2012 07:33 PM, Deepthi Dharwar wrote: >> Hi Daniel, > > Hi Deepthi, > >> On 06/08/2012 09:32 PM, Daniel Lezcano wrote: >> >>> We have the state index passed as parameter to the 'enter' function. >>> Most of the drivers a

Re: [linux-pm] [RFC 1/4] cpuidle: define the enter function in the driver structure

2012-06-08 Thread Daniel Lezcano
On 06/08/2012 07:33 PM, Deepthi Dharwar wrote: > Hi Daniel, Hi Deepthi, > On 06/08/2012 09:32 PM, Daniel Lezcano wrote: > >> We have the state index passed as parameter to the 'enter' function. >> Most of the drivers assign their 'enter' functions several times in >> the cpuidle_state structure,

Re: [linux-pm] [RFC 1/4] cpuidle: define the enter function in the driver structure

2012-06-08 Thread Deepthi Dharwar
Hi Daniel, On 06/08/2012 09:32 PM, Daniel Lezcano wrote: > We have the state index passed as parameter to the 'enter' function. > Most of the drivers assign their 'enter' functions several times in > the cpuidle_state structure, as we have the index, we can delegate > to the driver to handle thei

[RFC 1/4] cpuidle: define the enter function in the driver structure

2012-06-08 Thread Daniel Lezcano
We have the state index passed as parameter to the 'enter' function. Most of the drivers assign their 'enter' functions several times in the cpuidle_state structure, as we have the index, we can delegate to the driver to handle their own callback array. That will have the benefit of removing multi