Re: [PATCH V2 Resend] cpuidle: free all state kobjects from cpuidle_free_state_kobj()

2013-11-22 Thread Daniel Lezcano
On 11/21/2013 04:48 PM, Viresh Kumar wrote: On 21 November 2013 18:39, Rafael J. Wysocki wrote: On Thursday, November 21, 2013 08:54:12 AM Viresh Kumar wrote: Loop for states is currently present on callers side and so is replicated at several places. It would be better to move that inside cpu

[PATCH V2 Resend] cpuidle: free all state kobjects from cpuidle_free_state_kobj()

2013-11-20 Thread Viresh Kumar
Loop for states is currently present on callers side and so is replicated at several places. It would be better to move that inside cpuidle_free_state_kobj() instead. This patch does it. Acked-by: Daniel Lezcano Signed-off-by: Viresh Kumar --- drivers/cpuidle/sysfs.c | 23 -