Lines Matching refs:governor
244 policy->governor = sysfs_cpufreq_get_one_string(cpu, SCALING_GOVERNOR); in cpufreq_get_policy()
245 if (!policy->governor) { in cpufreq_get_policy()
252 free(policy->governor); in cpufreq_get_policy()
262 if ((!policy) || (!policy->governor)) in cpufreq_put_policy()
265 free(policy->governor); in cpufreq_put_policy()
266 policy->governor = NULL; in cpufreq_put_policy()
303 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors()
304 if (!current->governor) in cpufreq_get_available_governors()
307 memcpy(current->governor, linebuf + pos, i - pos); in cpufreq_get_available_governors()
308 current->governor[i - pos] = '\0'; in cpufreq_get_available_governors()
318 if (first->governor) in cpufreq_get_available_governors()
319 free(first->governor); in cpufreq_get_available_governors()
336 if (tmp->governor) in cpufreq_put_available_governors()
337 free(tmp->governor); in cpufreq_put_available_governors()
607 if (!policy || !(policy->governor)) in cpufreq_set_policy()
613 if (verify_gov(gov, policy->governor)) in cpufreq_set_policy()
667 int cpufreq_modify_policy_governor(unsigned int cpu, char *governor) in cpufreq_modify_policy_governor() argument
671 if ((!governor) || (strlen(governor) > 19)) in cpufreq_modify_policy_governor()
674 if (verify_gov(new_gov, governor)) in cpufreq_modify_policy_governor()
691 if (strncmp(pol->governor, userspace_gov, 9) != 0) { in cpufreq_set_frequency()