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

2013-03-07 Thread Liu, Chuansheng
] intel_idle: set the state_tables array into __initdata to > save mem > > 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. > > > >

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_tabl

[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 da