Lines Matching defs:str_governor
620 static struct cpufreq_governor *find_governor(const char *str_governor)
625 if (!strncasecmp(str_governor, t->name, CPUFREQ_NAME_LEN))
631 static struct cpufreq_governor *get_governor(const char *str_governor)
636 t = find_governor(str_governor);
649 static unsigned int cpufreq_parse_policy(char *str_governor)
651 if (!strncasecmp(str_governor, "performance", CPUFREQ_NAME_LEN))
654 if (!strncasecmp(str_governor, "powersave", CPUFREQ_NAME_LEN))
662 * @str_governor: Governor name.
664 static struct cpufreq_governor *cpufreq_parse_governor(char *str_governor)
668 t = get_governor(str_governor);
672 if (request_module("cpufreq_%s", str_governor))
675 return get_governor(str_governor);
775 char str_governor[16];
778 ret = sscanf(buf, "%15s", str_governor);
785 new_pol = cpufreq_parse_policy(str_governor);
793 new_gov = cpufreq_parse_governor(str_governor);