RE: [PATCH] intel_idle: set the state_tables array into __initdata to save mem

2013-03-07 Thread Liu, Chuansheng
> -Original Message- > From: Daniel Lezcano [mailto:daniel.lezc...@linaro.org] > Sent: Thursday, March 07, 2013 5:49 PM > To: Liu, Chuansheng > Cc: l...@kernel.org; Brown, Len; linux...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH] intel_idle: set the

Re: [PATCH] intel_idle: set the state_tables array into __initdata to save mem

2013-03-07 Thread Daniel Lezcano
On 03/07/2013 05:42 PM, Chuansheng Liu wrote: > > Currently, in intel_idle.c, there are 5 state_tables array, every > array size is sizeof(struct cpuidle_state) * CPUIDLE_STATE_MAX. > > But after intel_idle_probe(), just only one array is useful. > > Here we can just define one static

Re: [PATCH] intel_idle: set the state_tables array into __initdata to save mem

2013-03-07 Thread Daniel Lezcano
On 03/07/2013 05:42 PM, Chuansheng Liu wrote: Currently, in intel_idle.c, there are 5 state_tables array, every array size is sizeof(struct cpuidle_state) * CPUIDLE_STATE_MAX. But after intel_idle_probe(), just only one array is useful. Here we can just define one static state_table, and

RE: [PATCH] intel_idle: set the state_tables array into __initdata to save mem

2013-03-07 Thread Liu, Chuansheng
-Original Message- From: Daniel Lezcano [mailto:daniel.lezc...@linaro.org] Sent: Thursday, March 07, 2013 5:49 PM To: Liu, Chuansheng Cc: l...@kernel.org; Brown, Len; linux...@vger.kernel.org; linux-kernel@vger.kernel.org Subject: Re: [PATCH] intel_idle: set the state_tables array

[PATCH] intel_idle: set the state_tables array into __initdata to save mem

2013-03-06 Thread Chuansheng Liu
Currently, in intel_idle.c, there are 5 state_tables array, every array size is sizeof(struct cpuidle_state) * CPUIDLE_STATE_MAX. But after intel_idle_probe(), just only one array is useful. Here we can just define one static state_table, and initialize it in intel_idle_probe(), and set other

[PATCH] intel_idle: set the state_tables array into __initdata to save mem

2013-03-06 Thread Chuansheng Liu
Currently, in intel_idle.c, there are 5 state_tables array, every array size is sizeof(struct cpuidle_state) * CPUIDLE_STATE_MAX. But after intel_idle_probe(), just only one array is useful. Here we can just define one static state_table, and initialize it in intel_idle_probe(), and set other