gov               538 drivers/base/power/domain.c 	if (genpd->gov && genpd->gov->power_down_ok) {
gov               539 drivers/base/power/domain.c 		if (!genpd->gov->power_down_ok(&genpd->domain))
gov               544 drivers/base/power/domain.c 	if (!genpd->gov)
gov               768 drivers/base/power/domain.c 	suspend_ok = genpd->gov ? genpd->gov->suspend_ok : NULL;
gov              1777 drivers/base/power/domain.c 		  struct dev_power_governor *gov, bool is_off)
gov              1788 drivers/base/power/domain.c 	genpd->gov = gov;
gov              1831 drivers/base/power/domain.c 	} else if (!gov && genpd->state_count > 1) {
gov              1054 drivers/cpufreq/cpufreq.c 	struct cpufreq_governor *gov = NULL;
gov              1059 drivers/cpufreq/cpufreq.c 		gov = find_governor(policy->last_governor);
gov              1060 drivers/cpufreq/cpufreq.c 		if (gov) {
gov              1064 drivers/cpufreq/cpufreq.c 			gov = def_gov;
gov              1087 drivers/cpufreq/cpufreq.c 	return cpufreq_set_policy(policy, gov, pol);
gov              2191 drivers/cpufreq/cpufreq.c 		struct cpufreq_governor *gov = cpufreq_fallback_governor();
gov              2193 drivers/cpufreq/cpufreq.c 		if (gov) {
gov              2195 drivers/cpufreq/cpufreq.c 				policy->governor->name, gov->name);
gov              2196 drivers/cpufreq/cpufreq.c 			policy->governor = gov;
gov               315 drivers/cpufreq/cpufreq_conservative.c 	.gov = CPUFREQ_DBS_GOVERNOR_INITIALIZER("conservative"),
gov               325 drivers/cpufreq/cpufreq_conservative.c #define CPU_FREQ_GOV_CONSERVATIVE	(&cs_governor.gov)
gov               236 drivers/cpufreq/cpufreq_governor.c 	struct dbs_governor *gov;
gov               240 drivers/cpufreq/cpufreq_governor.c 	gov = dbs_governor_of(policy);
gov               247 drivers/cpufreq/cpufreq_governor.c 	gov_update_sample_delay(policy_dbs, gov->gov_dbs_update(policy));
gov               350 drivers/cpufreq/cpufreq_governor.c 						     struct dbs_governor *gov)
gov               356 drivers/cpufreq/cpufreq_governor.c 	policy_dbs = gov->alloc();
gov               376 drivers/cpufreq/cpufreq_governor.c 				 struct dbs_governor *gov)
gov               388 drivers/cpufreq/cpufreq_governor.c 	gov->free(policy_dbs);
gov               393 drivers/cpufreq/cpufreq_governor.c 	struct dbs_governor *gov = dbs_governor_of(policy);
gov               402 drivers/cpufreq/cpufreq_governor.c 	policy_dbs = alloc_policy_dbs_info(policy, gov);
gov               409 drivers/cpufreq/cpufreq_governor.c 	dbs_data = gov->gdbs_data;
gov               430 drivers/cpufreq/cpufreq_governor.c 	ret = gov->init(dbs_data);
gov               444 drivers/cpufreq/cpufreq_governor.c 		gov->gdbs_data = dbs_data;
gov               449 drivers/cpufreq/cpufreq_governor.c 	gov->kobj_type.sysfs_ops = &governor_sysfs_ops;
gov               450 drivers/cpufreq/cpufreq_governor.c 	ret = kobject_init_and_add(&dbs_data->attr_set.kobj, &gov->kobj_type,
gov               452 drivers/cpufreq/cpufreq_governor.c 				   "%s", gov->gov.name);
gov               464 drivers/cpufreq/cpufreq_governor.c 		gov->gdbs_data = NULL;
gov               465 drivers/cpufreq/cpufreq_governor.c 	gov->exit(dbs_data);
gov               469 drivers/cpufreq/cpufreq_governor.c 	free_policy_dbs_info(policy_dbs, gov);
gov               479 drivers/cpufreq/cpufreq_governor.c 	struct dbs_governor *gov = dbs_governor_of(policy);
gov               493 drivers/cpufreq/cpufreq_governor.c 			gov->gdbs_data = NULL;
gov               495 drivers/cpufreq/cpufreq_governor.c 		gov->exit(dbs_data);
gov               499 drivers/cpufreq/cpufreq_governor.c 	free_policy_dbs_info(policy_dbs, gov);
gov               507 drivers/cpufreq/cpufreq_governor.c 	struct dbs_governor *gov = dbs_governor_of(policy);
gov               536 drivers/cpufreq/cpufreq_governor.c 	gov->start(policy);
gov               127 drivers/cpufreq/cpufreq_governor.h 	struct cpufreq_governor gov;
gov               146 drivers/cpufreq/cpufreq_governor.h 	return container_of(policy->governor, struct dbs_governor, gov);
gov               401 drivers/cpufreq/cpufreq_ondemand.c 	.gov = CPUFREQ_DBS_GOVERNOR_INITIALIZER("ondemand"),
gov               411 drivers/cpufreq/cpufreq_ondemand.c #define CPU_FREQ_GOV_ONDEMAND	(&od_dbs_gov.gov)
gov                27 drivers/cpuidle/cpuidle.h extern int cpuidle_switch_governor(struct cpuidle_governor *gov);
gov               256 drivers/cpuidle/driver.c 	struct cpuidle_governor *gov;
gov               266 drivers/cpuidle/driver.c 		gov = cpuidle_find_governor(drv->governor);
gov               267 drivers/cpuidle/driver.c 		if (gov) {
gov               269 drivers/cpuidle/driver.c 			if (cpuidle_switch_governor(gov) < 0)
gov                33 drivers/cpuidle/governor.c 	struct cpuidle_governor *gov;
gov                35 drivers/cpuidle/governor.c 	list_for_each_entry(gov, &cpuidle_governors, governor_list)
gov                36 drivers/cpuidle/governor.c 		if (!strncasecmp(str, gov->name, CPUIDLE_NAME_LEN))
gov                37 drivers/cpuidle/governor.c 			return gov;
gov                47 drivers/cpuidle/governor.c int cpuidle_switch_governor(struct cpuidle_governor *gov)
gov                51 drivers/cpuidle/governor.c 	if (!gov)
gov                54 drivers/cpuidle/governor.c 	if (gov == cpuidle_curr_governor)
gov                64 drivers/cpuidle/governor.c 	cpuidle_curr_governor = gov;
gov                66 drivers/cpuidle/governor.c 	if (gov) {
gov                70 drivers/cpuidle/governor.c 		printk(KERN_INFO "cpuidle: using governor %s\n", gov->name);
gov                80 drivers/cpuidle/governor.c int cpuidle_register_governor(struct cpuidle_governor *gov)
gov                84 drivers/cpuidle/governor.c 	if (!gov || !gov->select)
gov                91 drivers/cpuidle/governor.c 	if (cpuidle_find_governor(gov->name) == NULL) {
gov                93 drivers/cpuidle/governor.c 		list_add_tail(&gov->governor_list, &cpuidle_governors);
gov                95 drivers/cpuidle/governor.c 		    !strncasecmp(param_governor, gov->name, CPUIDLE_NAME_LEN) ||
gov                96 drivers/cpuidle/governor.c 		    (cpuidle_curr_governor->rating < gov->rating &&
gov                99 drivers/cpuidle/governor.c 			cpuidle_switch_governor(gov);
gov                91 drivers/cpuidle/sysfs.c 	struct cpuidle_governor *gov;
gov               103 drivers/cpuidle/sysfs.c 	list_for_each_entry(gov, &cpuidle_governors, governor_list) {
gov               104 drivers/cpuidle/sysfs.c 		if (strlen(gov->name) == len && !strcmp(gov->name, gov_name)) {
gov               105 drivers/cpuidle/sysfs.c 			ret = cpuidle_switch_governor(gov);
gov                36 drivers/soc/renesas/rmobile-sysc.c 	struct dev_power_governor *gov;
gov               114 drivers/soc/renesas/rmobile-sysc.c 	struct dev_power_governor *gov = rmobile_pd->gov;
gov               126 drivers/soc/renesas/rmobile-sysc.c 	pm_genpd_init(genpd, gov ? : &simple_qos_governor, false);
gov               245 drivers/soc/renesas/rmobile-sysc.c 		pd->gov = &pm_domain_always_on_gov;
gov               208 drivers/thermal/thermal_core.c 	struct thermal_governor *gov;
gov               214 drivers/thermal/thermal_core.c 	gov = __find_governor(strim(policy));
gov               215 drivers/thermal/thermal_core.c 	if (!gov)
gov               218 drivers/thermal/thermal_core.c 	ret = thermal_set_governor(tz, gov);
gov               272 drivers/thermal/thermal_core.c 		struct thermal_governor **gov;
gov               274 drivers/thermal/thermal_core.c 		for_each_governor_table(gov) {
gov               275 drivers/thermal/thermal_core.c 			if (gov == governor)
gov               277 drivers/thermal/thermal_core.c 			thermal_unregister_governor(*gov);
gov                35 drivers/watchdog/watchdog_pretimeout.c 	struct watchdog_governor	*gov;
gov                44 drivers/watchdog/watchdog_pretimeout.c 		if (sysfs_streq(gov_name, priv->gov->name))
gov                58 drivers/watchdog/watchdog_pretimeout.c 		count += sprintf(buf + count, "%s\n", priv->gov->name);
gov                70 drivers/watchdog/watchdog_pretimeout.c 	if (wdd->gov)
gov                71 drivers/watchdog/watchdog_pretimeout.c 		count = sprintf(buf, "%s\n", wdd->gov->name);
gov                91 drivers/watchdog/watchdog_pretimeout.c 	wdd->gov = priv->gov;
gov               104 drivers/watchdog/watchdog_pretimeout.c 	if (!wdd->gov) {
gov               109 drivers/watchdog/watchdog_pretimeout.c 	wdd->gov->pretimeout(wdd);
gov               114 drivers/watchdog/watchdog_pretimeout.c int watchdog_register_governor(struct watchdog_governor *gov)
gov               125 drivers/watchdog/watchdog_pretimeout.c 	if (find_governor_by_name(gov->name)) {
gov               131 drivers/watchdog/watchdog_pretimeout.c 	priv->gov = gov;
gov               134 drivers/watchdog/watchdog_pretimeout.c 	if (!strncmp(gov->name, WATCHDOG_PRETIMEOUT_DEFAULT_GOV,
gov               137 drivers/watchdog/watchdog_pretimeout.c 		default_gov = gov;
gov               140 drivers/watchdog/watchdog_pretimeout.c 			if (!p->wdd->gov)
gov               141 drivers/watchdog/watchdog_pretimeout.c 				p->wdd->gov = default_gov;
gov               151 drivers/watchdog/watchdog_pretimeout.c void watchdog_unregister_governor(struct watchdog_governor *gov)
gov               159 drivers/watchdog/watchdog_pretimeout.c 		if (priv->gov == gov) {
gov               168 drivers/watchdog/watchdog_pretimeout.c 		if (p->wdd->gov == gov)
gov               169 drivers/watchdog/watchdog_pretimeout.c 			p->wdd->gov = default_gov;
gov               190 drivers/watchdog/watchdog_pretimeout.c 	wdd->gov = default_gov;
gov               204 drivers/watchdog/watchdog_pretimeout.c 	wdd->gov = NULL;
gov                16 drivers/watchdog/watchdog_pretimeout.h int watchdog_register_governor(struct watchdog_governor *gov);
gov                17 drivers/watchdog/watchdog_pretimeout.h void watchdog_unregister_governor(struct watchdog_governor *gov);
gov               262 include/linux/cpuidle.h extern int cpuidle_register_governor(struct cpuidle_governor *gov);
gov               265 include/linux/cpuidle.h static inline int cpuidle_register_governor(struct cpuidle_governor *gov)
gov               101 include/linux/pm_domain.h 	struct dev_power_governor *gov;
gov               204 include/linux/pm_domain.h 		  struct dev_power_governor *gov, bool is_off);
gov               239 include/linux/pm_domain.h 				struct dev_power_governor *gov, bool is_off)
gov               100 include/linux/watchdog.h 	const struct watchdog_governor *gov;
gov               349 kernel/sched/topology.c 	struct cpufreq_governor *gov;
gov               372 kernel/sched/topology.c 		gov = policy->governor;
gov               374 kernel/sched/topology.c 		if (gov != &schedutil_gov) {
gov               593 tools/power/cpupower/lib/cpufreq.c 	char gov[SYSFS_PATH_MAX];
gov               604 tools/power/cpupower/lib/cpufreq.c 	if (verify_gov(gov, policy->governor))
gov               633 tools/power/cpupower/lib/cpufreq.c 					     gov, strlen(gov));
gov               199 tools/power/cpupower/utils/cpufreq-set.c 	char gov[20];
gov               260 tools/power/cpupower/utils/cpufreq-set.c 			if ((sscanf(optarg, "%19s", gov)) != 1) {
gov               264 tools/power/cpupower/utils/cpufreq-set.c 			new_pol.governor = gov;