Commit 42f91fa1 authored by Viresh Kumar's avatar Viresh Kumar Committed by Rafael J. Wysocki

cpufreq: s/__find_governor/find_governor

Remove unnecessary from find_governor's name.
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent db5f2995
...@@ -433,7 +433,7 @@ static ssize_t store_boost(struct kobject *kobj, struct attribute *attr, ...@@ -433,7 +433,7 @@ static ssize_t store_boost(struct kobject *kobj, struct attribute *attr,
} }
define_one_global_rw(boost); define_one_global_rw(boost);
static struct cpufreq_governor *__find_governor(const char *str_governor) static struct cpufreq_governor *find_governor(const char *str_governor)
{ {
struct cpufreq_governor *t; struct cpufreq_governor *t;
...@@ -469,7 +469,7 @@ static int cpufreq_parse_governor(char *str_governor, unsigned int *policy, ...@@ -469,7 +469,7 @@ static int cpufreq_parse_governor(char *str_governor, unsigned int *policy,
mutex_lock(&cpufreq_governor_mutex); mutex_lock(&cpufreq_governor_mutex);
t = __find_governor(str_governor); t = find_governor(str_governor);
if (t == NULL) { if (t == NULL) {
int ret; int ret;
...@@ -479,7 +479,7 @@ static int cpufreq_parse_governor(char *str_governor, unsigned int *policy, ...@@ -479,7 +479,7 @@ static int cpufreq_parse_governor(char *str_governor, unsigned int *policy,
mutex_lock(&cpufreq_governor_mutex); mutex_lock(&cpufreq_governor_mutex);
if (ret == 0) if (ret == 0)
t = __find_governor(str_governor); t = find_governor(str_governor);
} }
if (t != NULL) { if (t != NULL) {
...@@ -936,7 +936,7 @@ static void cpufreq_init_policy(struct cpufreq_policy *policy) ...@@ -936,7 +936,7 @@ static void cpufreq_init_policy(struct cpufreq_policy *policy)
memcpy(&new_policy, policy, sizeof(*policy)); memcpy(&new_policy, policy, sizeof(*policy));
/* Update governor of new_policy to the governor used before hotplug */ /* Update governor of new_policy to the governor used before hotplug */
gov = __find_governor(per_cpu(cpufreq_cpu_governor, policy->cpu)); gov = find_governor(per_cpu(cpufreq_cpu_governor, policy->cpu));
if (gov) if (gov)
pr_debug("Restoring governor %s for cpu %d\n", pr_debug("Restoring governor %s for cpu %d\n",
policy->governor->name, policy->cpu); policy->governor->name, policy->cpu);
...@@ -2102,7 +2102,7 @@ int cpufreq_register_governor(struct cpufreq_governor *governor) ...@@ -2102,7 +2102,7 @@ int cpufreq_register_governor(struct cpufreq_governor *governor)
governor->initialized = 0; governor->initialized = 0;
err = -EBUSY; err = -EBUSY;
if (__find_governor(governor->name) == NULL) { if (!find_governor(governor->name)) {
err = 0; err = 0;
list_add(&governor->governor_list, &cpufreq_governor_list); list_add(&governor->governor_list, &cpufreq_governor_list);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment