Lines Matching refs:str_governor
619 static struct cpufreq_governor *find_governor(const char *str_governor) in find_governor() argument
624 if (!strncasecmp(str_governor, t->name, CPUFREQ_NAME_LEN)) in find_governor()
630 static struct cpufreq_governor *get_governor(const char *str_governor) in get_governor() argument
635 t = find_governor(str_governor); in get_governor()
648 static unsigned int cpufreq_parse_policy(char *str_governor) in cpufreq_parse_policy() argument
650 if (!strncasecmp(str_governor, "performance", CPUFREQ_NAME_LEN)) in cpufreq_parse_policy()
653 if (!strncasecmp(str_governor, "powersave", CPUFREQ_NAME_LEN)) in cpufreq_parse_policy()
663 static struct cpufreq_governor *cpufreq_parse_governor(char *str_governor) in cpufreq_parse_governor() argument
667 t = get_governor(str_governor); in cpufreq_parse_governor()
671 if (request_module("cpufreq_%s", str_governor)) in cpufreq_parse_governor()
674 return get_governor(str_governor); in cpufreq_parse_governor()
774 char str_governor[16]; in store_scaling_governor() local
777 ret = sscanf(buf, "%15s", str_governor); in store_scaling_governor()
784 new_pol = cpufreq_parse_policy(str_governor); in store_scaling_governor()
792 new_gov = cpufreq_parse_governor(str_governor); in store_scaling_governor()