Lines Matching defs:str_governor
663 static struct cpufreq_governor *find_governor(const char *str_governor)
668 if (!strncasecmp(str_governor, t->name, CPUFREQ_NAME_LEN))
674 static struct cpufreq_governor *get_governor(const char *str_governor)
679 t = find_governor(str_governor);
692 static unsigned int cpufreq_parse_policy(char *str_governor)
694 if (!strncasecmp(str_governor, "performance", CPUFREQ_NAME_LEN))
697 if (!strncasecmp(str_governor, "powersave", CPUFREQ_NAME_LEN))
705 * @str_governor: Governor name.
707 static struct cpufreq_governor *cpufreq_parse_governor(char *str_governor)
711 t = get_governor(str_governor);
715 if (request_module("cpufreq_%s", str_governor))
718 return get_governor(str_governor);
818 char str_governor[16];
821 ret = sscanf(buf, "%15s", str_governor);
828 new_pol = cpufreq_parse_policy(str_governor);
836 new_gov = cpufreq_parse_governor(str_governor);