governor          748 drivers/cpufreq/cpufreq.c 	else if (policy->governor)
governor          750 drivers/cpufreq/cpufreq.c 				policy->governor->name);
governor          864 drivers/cpufreq/cpufreq.c 	if (!policy->governor || !policy->governor->store_setspeed)
governor          871 drivers/cpufreq/cpufreq.c 	policy->governor->store_setspeed(policy, freq);
governor          878 drivers/cpufreq/cpufreq.c 	if (!policy->governor || !policy->governor->show_setspeed)
governor          881 drivers/cpufreq/cpufreq.c 	return policy->governor->show_setspeed(policy, buf);
governor         1062 drivers/cpufreq/cpufreq.c 				 policy->governor->name, policy->cpu);
governor         1118 drivers/cpufreq/cpufreq.c 		cpufreq_set_policy(policy, policy->governor, policy->policy);
governor         1319 drivers/cpufreq/cpufreq.c 		policy->governor = NULL;
governor         1555 drivers/cpufreq/cpufreq.c 			strncpy(policy->last_governor, policy->governor->name,
governor         2185 drivers/cpufreq/cpufreq.c 	if (!policy->governor)
governor         2189 drivers/cpufreq/cpufreq.c 	if (policy->governor->dynamic_switching &&
governor         2195 drivers/cpufreq/cpufreq.c 				policy->governor->name, gov->name);
governor         2196 drivers/cpufreq/cpufreq.c 			policy->governor = gov;
governor         2202 drivers/cpufreq/cpufreq.c 	if (!try_module_get(policy->governor->owner))
governor         2207 drivers/cpufreq/cpufreq.c 	if (policy->governor->init) {
governor         2208 drivers/cpufreq/cpufreq.c 		ret = policy->governor->init(policy);
governor         2210 drivers/cpufreq/cpufreq.c 			module_put(policy->governor->owner);
governor         2220 drivers/cpufreq/cpufreq.c 	if (cpufreq_suspended || !policy->governor)
governor         2225 drivers/cpufreq/cpufreq.c 	if (policy->governor->exit)
governor         2226 drivers/cpufreq/cpufreq.c 		policy->governor->exit(policy);
governor         2228 drivers/cpufreq/cpufreq.c 	module_put(policy->governor->owner);
governor         2238 drivers/cpufreq/cpufreq.c 	if (!policy->governor)
governor         2246 drivers/cpufreq/cpufreq.c 	if (policy->governor->start) {
governor         2247 drivers/cpufreq/cpufreq.c 		ret = policy->governor->start(policy);
governor         2252 drivers/cpufreq/cpufreq.c 	if (policy->governor->limits)
governor         2253 drivers/cpufreq/cpufreq.c 		policy->governor->limits(policy);
governor         2260 drivers/cpufreq/cpufreq.c 	if (cpufreq_suspended || !policy->governor)
governor         2265 drivers/cpufreq/cpufreq.c 	if (policy->governor->stop)
governor         2266 drivers/cpufreq/cpufreq.c 		policy->governor->stop(policy);
governor         2271 drivers/cpufreq/cpufreq.c 	if (cpufreq_suspended || !policy->governor)
governor         2276 drivers/cpufreq/cpufreq.c 	if (policy->governor->limits)
governor         2277 drivers/cpufreq/cpufreq.c 		policy->governor->limits(policy);
governor         2280 drivers/cpufreq/cpufreq.c int cpufreq_register_governor(struct cpufreq_governor *governor)
governor         2284 drivers/cpufreq/cpufreq.c 	if (!governor)
governor         2293 drivers/cpufreq/cpufreq.c 	if (!find_governor(governor->name)) {
governor         2295 drivers/cpufreq/cpufreq.c 		list_add(&governor->governor_list, &cpufreq_governor_list);
governor         2303 drivers/cpufreq/cpufreq.c void cpufreq_unregister_governor(struct cpufreq_governor *governor)
governor         2308 drivers/cpufreq/cpufreq.c 	if (!governor)
governor         2317 drivers/cpufreq/cpufreq.c 		if (!strcmp(policy->last_governor, governor->name)) {
governor         2318 drivers/cpufreq/cpufreq.c 			policy->governor = NULL;
governor         2325 drivers/cpufreq/cpufreq.c 	list_del(&governor->governor_list);
governor         2415 drivers/cpufreq/cpufreq.c 	if (new_gov == policy->governor) {
governor         2424 drivers/cpufreq/cpufreq.c 	old_gov = policy->governor;
governor         2432 drivers/cpufreq/cpufreq.c 	policy->governor = new_gov;
governor         2445 drivers/cpufreq/cpufreq.c 	pr_debug("starting governor %s failed\n", policy->governor->name);
governor         2447 drivers/cpufreq/cpufreq.c 		policy->governor = old_gov;
governor         2449 drivers/cpufreq/cpufreq.c 			policy->governor = NULL;
governor          146 drivers/cpufreq/cpufreq_governor.h 	return container_of(policy->governor, struct dbs_governor, gov);
governor          432 drivers/cpufreq/cpufreq_ondemand.c 		if (!policy || policy->governor != CPU_FREQ_GOV_ONDEMAND)
governor           37 drivers/cpuidle/cpuidle-haltpoll.c 	.governor = "haltpoll",
governor          780 drivers/cpuidle/cpuidle.c module_param_string(governor, param_governor, CPUIDLE_NAME_LEN, 0444);
governor          263 drivers/cpuidle/driver.c 	if (!ret && !strlen(param_governor) && drv->governor &&
governor          266 drivers/cpuidle/driver.c 		gov = cpuidle_find_governor(drv->governor);
governor          236 drivers/devfreq/devfreq.c 	struct devfreq_governor *governor;
governor          246 drivers/devfreq/devfreq.c 	governor = find_devfreq_governor(name);
governor          247 drivers/devfreq/devfreq.c 	if (IS_ERR(governor)) {
governor          260 drivers/devfreq/devfreq.c 		governor = find_devfreq_governor(name);
governor          263 drivers/devfreq/devfreq.c 	return governor;
governor          347 drivers/devfreq/devfreq.c 	if (!devfreq->governor)
governor          351 drivers/devfreq/devfreq.c 	err = devfreq->governor->get_target_freq(devfreq, &freq);
governor          615 drivers/devfreq/devfreq.c 	struct devfreq_governor *governor;
governor          716 drivers/devfreq/devfreq.c 	governor = try_then_request_governor(devfreq->governor_name);
governor          717 drivers/devfreq/devfreq.c 	if (IS_ERR(governor)) {
governor          720 drivers/devfreq/devfreq.c 		err = PTR_ERR(governor);
governor          724 drivers/devfreq/devfreq.c 	devfreq->governor = governor;
governor          725 drivers/devfreq/devfreq.c 	err = devfreq->governor->event_handler(devfreq, DEVFREQ_GOV_START,
governor          762 drivers/devfreq/devfreq.c 	if (devfreq->governor)
governor          763 drivers/devfreq/devfreq.c 		devfreq->governor->event_handler(devfreq,
governor          897 drivers/devfreq/devfreq.c 	if (devfreq->governor) {
governor          898 drivers/devfreq/devfreq.c 		ret = devfreq->governor->event_handler(devfreq,
governor          942 drivers/devfreq/devfreq.c 	if (devfreq->governor) {
governor          943 drivers/devfreq/devfreq.c 		ret = devfreq->governor->event_handler(devfreq,
governor         1001 drivers/devfreq/devfreq.c int devfreq_add_governor(struct devfreq_governor *governor)
governor         1007 drivers/devfreq/devfreq.c 	if (!governor) {
governor         1013 drivers/devfreq/devfreq.c 	g = find_devfreq_governor(governor->name);
governor         1021 drivers/devfreq/devfreq.c 	list_add(&governor->node, &devfreq_governor_list);
governor         1027 drivers/devfreq/devfreq.c 		if (!strncmp(devfreq->governor_name, governor->name,
governor         1030 drivers/devfreq/devfreq.c 			if (devfreq->governor) {
governor         1033 drivers/devfreq/devfreq.c 					 __func__, devfreq->governor->name);
governor         1034 drivers/devfreq/devfreq.c 				ret = devfreq->governor->event_handler(devfreq,
governor         1040 drivers/devfreq/devfreq.c 						 devfreq->governor->name, ret);
governor         1044 drivers/devfreq/devfreq.c 			devfreq->governor = governor;
governor         1045 drivers/devfreq/devfreq.c 			ret = devfreq->governor->event_handler(devfreq,
governor         1049 drivers/devfreq/devfreq.c 					 __func__, devfreq->governor->name,
governor         1066 drivers/devfreq/devfreq.c int devfreq_remove_governor(struct devfreq_governor *governor)
governor         1072 drivers/devfreq/devfreq.c 	if (!governor) {
governor         1078 drivers/devfreq/devfreq.c 	g = find_devfreq_governor(governor->name);
governor         1081 drivers/devfreq/devfreq.c 		       governor->name);
governor         1089 drivers/devfreq/devfreq.c 		if (!strncmp(devfreq->governor_name, governor->name,
governor         1092 drivers/devfreq/devfreq.c 			if (!devfreq->governor) {
governor         1094 drivers/devfreq/devfreq.c 					 __func__, governor->name);
governor         1098 drivers/devfreq/devfreq.c 			ret = devfreq->governor->event_handler(devfreq,
governor         1102 drivers/devfreq/devfreq.c 					 __func__, devfreq->governor->name,
governor         1105 drivers/devfreq/devfreq.c 			devfreq->governor = NULL;
governor         1109 drivers/devfreq/devfreq.c 	list_del(&governor->node);
governor         1128 drivers/devfreq/devfreq.c 	if (!to_devfreq(dev)->governor)
governor         1131 drivers/devfreq/devfreq.c 	return sprintf(buf, "%s\n", to_devfreq(dev)->governor->name);
governor         1140 drivers/devfreq/devfreq.c 	const struct devfreq_governor *governor, *prev_governor;
governor         1147 drivers/devfreq/devfreq.c 	governor = try_then_request_governor(str_governor);
governor         1148 drivers/devfreq/devfreq.c 	if (IS_ERR(governor)) {
governor         1149 drivers/devfreq/devfreq.c 		ret = PTR_ERR(governor);
governor         1152 drivers/devfreq/devfreq.c 	if (df->governor == governor) {
governor         1155 drivers/devfreq/devfreq.c 	} else if ((df->governor && df->governor->immutable) ||
governor         1156 drivers/devfreq/devfreq.c 					governor->immutable) {
governor         1161 drivers/devfreq/devfreq.c 	if (df->governor) {
governor         1162 drivers/devfreq/devfreq.c 		ret = df->governor->event_handler(df, DEVFREQ_GOV_STOP, NULL);
governor         1165 drivers/devfreq/devfreq.c 				 __func__, df->governor->name, ret);
governor         1169 drivers/devfreq/devfreq.c 	prev_governor = df->governor;
governor         1170 drivers/devfreq/devfreq.c 	df->governor = governor;
governor         1171 drivers/devfreq/devfreq.c 	strncpy(df->governor_name, governor->name, DEVFREQ_NAME_LEN);
governor         1172 drivers/devfreq/devfreq.c 	ret = df->governor->event_handler(df, DEVFREQ_GOV_START, NULL);
governor         1175 drivers/devfreq/devfreq.c 			 __func__, df->governor->name, ret);
governor         1176 drivers/devfreq/devfreq.c 		df->governor = prev_governor;
governor         1179 drivers/devfreq/devfreq.c 		ret = df->governor->event_handler(df, DEVFREQ_GOV_START, NULL);
governor         1184 drivers/devfreq/devfreq.c 			df->governor = NULL;
governor         1194 drivers/devfreq/devfreq.c static DEVICE_ATTR_RW(governor);
governor         1209 drivers/devfreq/devfreq.c 	if (df->governor && df->governor->immutable) {
governor         1217 drivers/devfreq/devfreq.c 		struct devfreq_governor *governor;
governor         1219 drivers/devfreq/devfreq.c 		list_for_each_entry(governor, &devfreq_governor_list, node) {
governor         1220 drivers/devfreq/devfreq.c 			if (governor->immutable)
governor         1223 drivers/devfreq/devfreq.c 					   "%s ", governor->name);
governor         1274 drivers/devfreq/devfreq.c 	if (!df->governor)
governor         1281 drivers/devfreq/devfreq.c 	df->governor->event_handler(df, DEVFREQ_GOV_INTERVAL, &value);
governor           64 drivers/devfreq/governor.h extern int devfreq_add_governor(struct devfreq_governor *governor);
governor           65 drivers/devfreq/governor.h extern int devfreq_remove_governor(struct devfreq_governor *governor);
governor           99 drivers/devfreq/governor_passive.c 	if (!devfreq->governor)
governor          104 drivers/devfreq/governor_passive.c 	ret = devfreq->governor->get_target_freq(devfreq, &freq);
governor          747 drivers/platform/x86/acerhdf.c 	if (strcmp(thz_dev->governor->name,
governor           84 drivers/thermal/thermal_core.c 	if (tz->governor && tz->governor->bind_to_tz) {
governor           85 drivers/thermal/thermal_core.c 		if (tz->governor->bind_to_tz(tz)) {
governor           88 drivers/thermal/thermal_core.c 				failed_gov_name, tz->governor->name, tz->type);
governor           89 drivers/thermal/thermal_core.c 			tz->governor = NULL;
governor          108 drivers/thermal/thermal_core.c 	if (tz->governor && tz->governor->unbind_from_tz)
governor          109 drivers/thermal/thermal_core.c 		tz->governor->unbind_from_tz(tz);
governor          120 drivers/thermal/thermal_core.c 	tz->governor = new_gov;
governor          125 drivers/thermal/thermal_core.c int thermal_register_governor(struct thermal_governor *governor)
governor          131 drivers/thermal/thermal_core.c 	if (!governor)
governor          137 drivers/thermal/thermal_core.c 	if (!__find_governor(governor->name)) {
governor          141 drivers/thermal/thermal_core.c 		list_add(&governor->governor_list, &thermal_governor_list);
governor          142 drivers/thermal/thermal_core.c 		match_default = !strncmp(governor->name,
governor          147 drivers/thermal/thermal_core.c 			def_governor = governor;
governor          157 drivers/thermal/thermal_core.c 		if (pos->governor)
governor          162 drivers/thermal/thermal_core.c 		if (!strncasecmp(name, governor->name, THERMAL_NAME_LENGTH)) {
governor          165 drivers/thermal/thermal_core.c 			ret = thermal_set_governor(pos, governor);
governor          169 drivers/thermal/thermal_core.c 					governor->name, pos->type, ret);
governor          179 drivers/thermal/thermal_core.c void thermal_unregister_governor(struct thermal_governor *governor)
governor          183 drivers/thermal/thermal_core.c 	if (!governor)
governor          188 drivers/thermal/thermal_core.c 	if (!__find_governor(governor->name))
governor          194 drivers/thermal/thermal_core.c 		if (!strncasecmp(pos->governor->name, governor->name,
governor          200 drivers/thermal/thermal_core.c 	list_del(&governor->governor_list);
governor          248 drivers/thermal/thermal_core.c 	struct thermal_governor **governor;
governor          250 drivers/thermal/thermal_core.c 	for_each_governor_table(governor)
governor          251 drivers/thermal/thermal_core.c 		thermal_unregister_governor(*governor);
governor          257 drivers/thermal/thermal_core.c 	struct thermal_governor **governor;
governor          259 drivers/thermal/thermal_core.c 	for_each_governor_table(governor) {
governor          260 drivers/thermal/thermal_core.c 		ret = thermal_register_governor(*governor);
governor          263 drivers/thermal/thermal_core.c 			       (*governor)->name);
governor          268 drivers/thermal/thermal_core.c 			(*governor)->name);
governor          275 drivers/thermal/thermal_core.c 			if (gov == governor)
governor          326 drivers/thermal/thermal_core.c 	tz->governor ? tz->governor->throttle(tz, trip) :
governor         1246 drivers/thermal/thermal_core.c 	struct thermal_governor *governor;
governor         1323 drivers/thermal/thermal_core.c 		governor = __find_governor(tz->tzp->governor_name);
governor         1325 drivers/thermal/thermal_core.c 		governor = def_governor;
governor         1327 drivers/thermal/thermal_core.c 	result = thermal_set_governor(tz, governor);
governor           26 drivers/thermal/thermal_core.h #define THERMAL_GOVERNOR_DECLARE(name)	THERMAL_TABLE_ENTRY(governor, name)
governor          283 drivers/thermal/thermal_sysfs.c 	return sprintf(buf, "%s\n", tz->governor->name);
governor          649 include/asm-generic/vmlinux.lds.h 	THERMAL_TABLE(governor)						\
governor           73 include/linux/cpufreq.h 	struct cpufreq_governor	*governor; /* see below */
governor          575 include/linux/cpufreq.h int cpufreq_register_governor(struct cpufreq_governor *governor);
governor          576 include/linux/cpufreq.h void cpufreq_unregister_governor(struct cpufreq_governor *governor);
governor          126 include/linux/cpuidle.h 	const char		*governor;
governor          154 include/linux/devfreq.h 	const struct devfreq_governor *governor;
governor          214 include/linux/thermal.h 	struct thermal_governor *governor;
governor          939 kernel/sched/cpufreq_schedutil.c 	if (old_gov == &schedutil_gov || policy->governor == &schedutil_gov) {
governor          372 kernel/sched/topology.c 		gov = policy->governor;
governor          146 tools/power/cpupower/bench/benchmark.c 		if (set_cpufreq_governor(config->governor, config->cpu) != 0)
governor          105 tools/power/cpupower/bench/main.c 			strncpy(config->governor, optarg, 14);
governor          175 tools/power/cpupower/bench/main.c 		       config->governor);
governor          135 tools/power/cpupower/bench/parse.c 	strncpy(config->governor, "ondemand", sizeof(config->governor));
governor          211 tools/power/cpupower/bench/parse.c 			strncpy(config->governor, val,
governor          212 tools/power/cpupower/bench/parse.c 					sizeof(config->governor));
governor          213 tools/power/cpupower/bench/parse.c 			config->governor[sizeof(config->governor) - 1] = '\0';
governor           19 tools/power/cpupower/bench/parse.h 	char governor[15];	/* cpufreq governor */
governor           46 tools/power/cpupower/bench/system.c int set_cpufreq_governor(char *governor, unsigned int cpu)
governor           49 tools/power/cpupower/bench/system.c 	dprintf("set %s as cpufreq governor\n", governor);
governor           57 tools/power/cpupower/bench/system.c 	if (cpufreq_modify_policy_governor(cpu, governor) != 0) {
governor           59 tools/power/cpupower/bench/system.c 		fprintf(stderr, "error: unable to set %s governor\n", governor);
governor           11 tools/power/cpupower/bench/system.h int set_cpufreq_governor(char *governor, unsigned int cpu);
governor          235 tools/power/cpupower/lib/cpufreq.c 	policy->governor = sysfs_cpufreq_get_one_string(cpu, SCALING_GOVERNOR);
governor          236 tools/power/cpupower/lib/cpufreq.c 	if (!policy->governor) {
governor          243 tools/power/cpupower/lib/cpufreq.c 		free(policy->governor);
governor          253 tools/power/cpupower/lib/cpufreq.c 	if ((!policy) || (!policy->governor))
governor          256 tools/power/cpupower/lib/cpufreq.c 	free(policy->governor);
governor          257 tools/power/cpupower/lib/cpufreq.c 	policy->governor = NULL;
governor          294 tools/power/cpupower/lib/cpufreq.c 			current->governor = malloc(i - pos + 1);
governor          295 tools/power/cpupower/lib/cpufreq.c 			if (!current->governor)
governor          298 tools/power/cpupower/lib/cpufreq.c 			memcpy(current->governor, linebuf + pos, i - pos);
governor          299 tools/power/cpupower/lib/cpufreq.c 			current->governor[i - pos] = '\0';
governor          309 tools/power/cpupower/lib/cpufreq.c 		if (first->governor)
governor          310 tools/power/cpupower/lib/cpufreq.c 			free(first->governor);
governor          327 tools/power/cpupower/lib/cpufreq.c 		if (tmp->governor)
governor          328 tools/power/cpupower/lib/cpufreq.c 			free(tmp->governor);
governor          598 tools/power/cpupower/lib/cpufreq.c 	if (!policy || !(policy->governor))
governor          604 tools/power/cpupower/lib/cpufreq.c 	if (verify_gov(gov, policy->governor))
governor          658 tools/power/cpupower/lib/cpufreq.c int cpufreq_modify_policy_governor(unsigned int cpu, char *governor)
governor          662 tools/power/cpupower/lib/cpufreq.c 	if ((!governor) || (strlen(governor) > 19))
governor          665 tools/power/cpupower/lib/cpufreq.c 	if (verify_gov(new_gov, governor))
governor          682 tools/power/cpupower/lib/cpufreq.c 	if (strncmp(pol->governor, userspace_gov, 9) != 0) {
governor           14 tools/power/cpupower/lib/cpufreq.h 	char *governor;
governor           18 tools/power/cpupower/lib/cpufreq.h 	char *governor;
governor          193 tools/power/cpupower/lib/cpufreq.h int cpufreq_modify_policy_governor(unsigned int cpu, char *governor);
governor           80 tools/power/cpupower/utils/cpufreq-info.c 			max ? max_pctg : 0, policy->governor);
governor          361 tools/power/cpupower/utils/cpufreq-info.c 	       policy->governor);
governor          380 tools/power/cpupower/utils/cpufreq-info.c 		printf("%s ", governors->governor);
governor          383 tools/power/cpupower/utils/cpufreq-info.c 	printf("%s\n", governors->governor);
governor          156 tools/power/cpupower/utils/cpufreq-set.c 	if (!new_pol->governor)
governor          157 tools/power/cpupower/utils/cpufreq-set.c 		new_pol->governor = cur_pol->governor;
governor          182 tools/power/cpupower/utils/cpufreq-set.c 		else if (new_pol->governor)
governor          184 tools/power/cpupower/utils/cpufreq-set.c 							new_pol->governor);
governor          205 tools/power/cpupower/utils/cpufreq-set.c 		.governor = NULL,
governor          253 tools/power/cpupower/utils/cpufreq-set.c 			if (new_pol.governor)
governor          264 tools/power/cpupower/utils/cpufreq-set.c 			new_pol.governor = gov;