mirror of https://gitee.com/openkylin/linux.git
cpuidle: use drv instead of cpuidle_driver in show_current_driver()
Instances of "struct cpuidle_driver *" are consistently named as "drv" in the cpuidle core except in show_current_driver(). Make that function use variable naming consistent with the rest of the code. [rjw: Changelog] Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
0d09d31256
commit
1f6b9f74ee
|
@ -52,12 +52,12 @@ static ssize_t show_current_driver(struct device *dev,
|
||||||
char *buf)
|
char *buf)
|
||||||
{
|
{
|
||||||
ssize_t ret;
|
ssize_t ret;
|
||||||
struct cpuidle_driver *cpuidle_driver;
|
struct cpuidle_driver *drv;
|
||||||
|
|
||||||
spin_lock(&cpuidle_driver_lock);
|
spin_lock(&cpuidle_driver_lock);
|
||||||
cpuidle_driver = cpuidle_get_driver();
|
drv = cpuidle_get_driver();
|
||||||
if (cpuidle_driver)
|
if (drv)
|
||||||
ret = sprintf(buf, "%s\n", cpuidle_driver->name);
|
ret = sprintf(buf, "%s\n", drv->name);
|
||||||
else
|
else
|
||||||
ret = sprintf(buf, "none\n");
|
ret = sprintf(buf, "none\n");
|
||||||
spin_unlock(&cpuidle_driver_lock);
|
spin_unlock(&cpuidle_driver_lock);
|
||||||
|
|
Loading…
Reference in New Issue