Re: [PATCH v2 1/2] cpufreq: powernv: Remove flag use-case of policy->driver_data

2016-04-18 Thread Viresh Kumar
On 15-04-16, 11:58, Akshay Adiga wrote: > From: Shilpasri G Bhat > > commit 1b0289848d5d ("cpufreq: powernv: Add sysfs attributes to show > throttle stats") used policy->driver_data as a flag for one-time creation > of throttle sysfs files. Instead of this use 'kernfs_find_and_get()' to > check i

[PATCH v2 1/2] cpufreq: powernv: Remove flag use-case of policy->driver_data

2016-04-14 Thread Akshay Adiga
From: Shilpasri G Bhat commit 1b0289848d5d ("cpufreq: powernv: Add sysfs attributes to show throttle stats") used policy->driver_data as a flag for one-time creation of throttle sysfs files. Instead of this use 'kernfs_find_and_get()' to check if the attribute already exists. This is required as