Re: [PATCH v4 2/4] cpuidle:powernv: Add helper function to populate powernv idle states.

2016-12-14 Thread Gautham R Shenoy
Hi Balbir, On Tue, Dec 13, 2016 at 10:51:04PM +1100, Balbir Singh wrote: > > > On 10/12/16 00:32, Gautham R. Shenoy wrote: > > From: "Gautham R. Shenoy" > > > > In the current code for powernv_add_idle_states, there is a lot of code > > duplication while initializing

Re: [PATCH v4 2/4] cpuidle:powernv: Add helper function to populate powernv idle states.

2016-12-14 Thread Gautham R Shenoy
Hi Balbir, On Tue, Dec 13, 2016 at 10:51:04PM +1100, Balbir Singh wrote: > > > On 10/12/16 00:32, Gautham R. Shenoy wrote: > > From: "Gautham R. Shenoy" > > > > In the current code for powernv_add_idle_states, there is a lot of code > > duplication while initializing an idle state in

Re: [PATCH v4 2/4] cpuidle:powernv: Add helper function to populate powernv idle states.

2016-12-13 Thread Balbir Singh
On 10/12/16 00:32, Gautham R. Shenoy wrote: > From: "Gautham R. Shenoy" > > In the current code for powernv_add_idle_states, there is a lot of code > duplication while initializing an idle state in powernv_states table. > > Add an inline helper function to populate

Re: [PATCH v4 2/4] cpuidle:powernv: Add helper function to populate powernv idle states.

2016-12-13 Thread Balbir Singh
On 10/12/16 00:32, Gautham R. Shenoy wrote: > From: "Gautham R. Shenoy" > > In the current code for powernv_add_idle_states, there is a lot of code > duplication while initializing an idle state in powernv_states table. > > Add an inline helper function to populate the powernv_states[] table

[PATCH v4 2/4] cpuidle:powernv: Add helper function to populate powernv idle states.

2016-12-09 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" In the current code for powernv_add_idle_states, there is a lot of code duplication while initializing an idle state in powernv_states table. Add an inline helper function to populate the powernv_states[] table for a given idle state. Invoke

[PATCH v4 2/4] cpuidle:powernv: Add helper function to populate powernv idle states.

2016-12-09 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" In the current code for powernv_add_idle_states, there is a lot of code duplication while initializing an idle state in powernv_states table. Add an inline helper function to populate the powernv_states[] table for a given idle state. Invoke this for populating the