Re: [PATCH 1/4] cpuidle - sysfs : change function parameter

2012-10-16 Thread Rafael J. Wysocki
On Thursday 11 of October 2012 00:21:28 Daniel Lezcano wrote: > The function needs the cpuidle_device which is initially passed to the > caller. > > The current code gets the struct device from the struct cpuidle_device, > pass it the cpuidle_add_sysfs function. This function calls > per_cpu(cpuid

[PATCH 1/4] cpuidle - sysfs : change function parameter

2012-10-10 Thread Daniel Lezcano
The function needs the cpuidle_device which is initially passed to the caller. The current code gets the struct device from the struct cpuidle_device, pass it the cpuidle_add_sysfs function. This function calls per_cpu(cpuidle_devices, cpu) to get the cpuidle_device. This patch pass the cpuidle_d