Lines Matching refs:governor

627 			policy->governor = t;  in cpufreq_parse_governor()
732 else if (policy->governor) in show_scaling_governor()
734 policy->governor->name); in show_scaling_governor()
759 if (new_policy.governor) in store_scaling_governor()
760 module_put(new_policy.governor->owner); in store_scaling_governor()
838 if (!policy->governor || !policy->governor->store_setspeed) in store_scaling_setspeed()
845 policy->governor->store_setspeed(policy, freq); in store_scaling_setspeed()
852 if (!policy->governor || !policy->governor->show_setspeed) in show_scaling_setspeed()
855 return policy->governor->show_setspeed(policy, buf); in show_scaling_setspeed()
1032 policy->governor->name, policy->cpu); in cpufreq_init_policy()
1039 new_policy.governor = gov; in cpufreq_init_policy()
1194 policy->governor = NULL; in cpufreq_online()
1388 strncpy(policy->last_governor, policy->governor->name, in cpufreq_offline()
2025 if (!policy->governor) in cpufreq_init_governor()
2029 if (policy->governor->dynamic_switching && in cpufreq_init_governor()
2035 policy->governor->name, gov->name); in cpufreq_init_governor()
2036 policy->governor = gov; in cpufreq_init_governor()
2042 if (!try_module_get(policy->governor->owner)) in cpufreq_init_governor()
2047 if (policy->governor->init) { in cpufreq_init_governor()
2048 ret = policy->governor->init(policy); in cpufreq_init_governor()
2050 module_put(policy->governor->owner); in cpufreq_init_governor()
2060 if (cpufreq_suspended || !policy->governor) in cpufreq_exit_governor()
2065 if (policy->governor->exit) in cpufreq_exit_governor()
2066 policy->governor->exit(policy); in cpufreq_exit_governor()
2068 module_put(policy->governor->owner); in cpufreq_exit_governor()
2078 if (!policy->governor) in cpufreq_start_governor()
2086 if (policy->governor->start) { in cpufreq_start_governor()
2087 ret = policy->governor->start(policy); in cpufreq_start_governor()
2092 if (policy->governor->limits) in cpufreq_start_governor()
2093 policy->governor->limits(policy); in cpufreq_start_governor()
2100 if (cpufreq_suspended || !policy->governor) in cpufreq_stop_governor()
2105 if (policy->governor->stop) in cpufreq_stop_governor()
2106 policy->governor->stop(policy); in cpufreq_stop_governor()
2111 if (cpufreq_suspended || !policy->governor) in cpufreq_governor_limits()
2116 if (policy->governor->limits) in cpufreq_governor_limits()
2117 policy->governor->limits(policy); in cpufreq_governor_limits()
2120 int cpufreq_register_governor(struct cpufreq_governor *governor) in cpufreq_register_governor() argument
2124 if (!governor) in cpufreq_register_governor()
2133 if (!find_governor(governor->name)) { in cpufreq_register_governor()
2135 list_add(&governor->governor_list, &cpufreq_governor_list); in cpufreq_register_governor()
2143 void cpufreq_unregister_governor(struct cpufreq_governor *governor) in cpufreq_unregister_governor() argument
2148 if (!governor) in cpufreq_unregister_governor()
2157 if (!strcmp(policy->last_governor, governor->name)) { in cpufreq_unregister_governor()
2158 policy->governor = NULL; in cpufreq_unregister_governor()
2165 list_del(&governor->governor_list); in cpufreq_unregister_governor()
2257 if (new_policy->governor == policy->governor) { in cpufreq_set_policy()
2266 old_gov = policy->governor; in cpufreq_set_policy()
2274 policy->governor = new_policy->governor; in cpufreq_set_policy()
2286 pr_debug("starting governor %s failed\n", policy->governor->name); in cpufreq_set_policy()
2288 policy->governor = old_gov; in cpufreq_set_policy()
2290 policy->governor = NULL; in cpufreq_set_policy()