Home
last modified time | relevance | path

Searched refs:governor (Results 1 - 25 of 80) sorted by relevance

1234

/kernel/linux/linux-6.6/drivers/devfreq/
H A Ddevfreq.c31 #include "governor.h"
256 * find_devfreq_governor() - find devfreq governor from name
257 * @name: name of the governor
260 * governor's pointer. devfreq_list_lock should be held by the caller.
282 * try_then_request_governor() - Try to find the governor and request the
284 * @name: name of the governor
287 * if is not found. This can happen when both drivers (the governor driver
290 * governor's pointer or an error pointer.
294 struct devfreq_governor *governor; in try_then_request_governor() local
304 governor in try_then_request_governor()
809 struct devfreq_governor *governor; devfreq_add_device() local
1271 devfreq_add_governor(struct devfreq_governor *governor) devfreq_add_governor() argument
1332 devm_devfreq_remove_governor(void *governor) devm_devfreq_remove_governor() argument
1344 devm_devfreq_add_governor(struct device *dev, struct devfreq_governor *governor) devm_devfreq_add_governor() argument
1362 devfreq_remove_governor(struct devfreq_governor *governor) devfreq_remove_governor() argument
1438 const struct devfreq_governor *governor, *prev_governor; governor_store() local
1536 struct devfreq_governor *governor; available_governors_show() local
[all...]
H A Dgovernor.h3 * governor.h - internal header for devfreq governors.
31 * Definition of the governor feature flags
33 * : This governor is never changeable to other governors.
35 * : The devfreq won't schedule the work for this governor.
41 * Definition of governor attribute flags except for common sysfs attributes
61 * This is auto-populated by the governor.
76 * struct devfreq_governor - Devfreq policy governor
86 * to governors. Events include per device governor
109 int devfreq_add_governor(struct devfreq_governor *governor);
110 int devfreq_remove_governor(struct devfreq_governor *governor);
[all...]
/kernel/linux/linux-5.10/drivers/devfreq/
H A Ddevfreq.c29 #include "governor.h"
256 * find_devfreq_governor() - find devfreq governor from name
257 * @name: name of the governor
260 * governor's pointer. devfreq_list_lock should be held by the caller.
282 * try_then_request_governor() - Try to find the governor and request the
284 * @name: name of the governor
287 * if is not found. This can happen when both drivers (the governor driver
290 * governor's pointer or an error pointer.
294 struct devfreq_governor *governor; in try_then_request_governor() local
304 governor in try_then_request_governor()
772 struct devfreq_governor *governor; devfreq_add_device() local
1212 devfreq_add_governor(struct devfreq_governor *governor) devfreq_add_governor() argument
1277 devfreq_remove_governor(struct devfreq_governor *governor) devfreq_remove_governor() argument
1353 const struct devfreq_governor *governor, *prev_governor; governor_store() local
1434 struct devfreq_governor *governor; available_governors_show() local
[all...]
H A Dgovernor.h3 * governor.h - internal header for devfreq governors.
29 * struct devfreq_governor - Devfreq policy governor
32 * @immutable: Immutable flag for governor. If the value is 1,
33 * this governor is never changeable to other governor.
35 * governor if value is set to 1.
43 * to governors. Events include per device governor
66 int devfreq_add_governor(struct devfreq_governor *governor);
67 int devfreq_remove_governor(struct devfreq_governor *governor);
/kernel/linux/linux-5.10/drivers/thermal/
H A Dthermal_core.c50 * the thermal core and by the thermal governor code.
68 * bind_previous_governor() - bind the previous governor of the thermal zone
70 * @failed_gov_name: the name of the governor that failed to register
72 * Register the previous governor of the thermal zone after a new
73 * governor has failed to be bound.
78 if (tz->governor && tz->governor->bind_to_tz) { in bind_previous_governor()
79 if (tz->governor->bind_to_tz(tz)) { in bind_previous_governor()
81 "governor %s failed to bind and the previous one (%s) failed to bind again, thermal zone %s has no governor\ in bind_previous_governor()
119 thermal_register_governor(struct thermal_governor *governor) thermal_register_governor() argument
173 thermal_unregister_governor(struct thermal_governor *governor) thermal_unregister_governor() argument
243 struct thermal_governor **governor; thermal_unregister_governors() local
252 struct thermal_governor **governor; thermal_register_governors() local
1398 struct thermal_governor *governor; thermal_zone_device_register() local
[all...]
/kernel/linux/linux-6.6/drivers/thermal/
H A Dthermal_core.c46 * the thermal core and by the thermal governor code.
64 * bind_previous_governor() - bind the previous governor of the thermal zone
66 * @failed_gov_name: the name of the governor that failed to register
68 * Register the previous governor of the thermal zone after a new
69 * governor has failed to be bound.
74 if (tz->governor && tz->governor->bind_to_tz) { in bind_previous_governor()
75 if (tz->governor->bind_to_tz(tz)) { in bind_previous_governor()
77 "governor %s failed to bind and the previous one (%s) failed to bind again, thermal zone %s has no governor\ in bind_previous_governor()
115 thermal_register_governor(struct thermal_governor *governor) thermal_register_governor() argument
169 thermal_unregister_governor(struct thermal_governor *governor) thermal_unregister_governor() argument
241 struct thermal_governor **governor; thermal_unregister_governors() local
250 struct thermal_governor **governor; thermal_register_governors() local
1240 struct thermal_governor *governor; thermal_zone_device_register_with_trips() local
[all...]
/kernel/linux/linux-5.10/tools/power/cpupower/lib/
H A Dcpufreq.c235 policy->governor = sysfs_cpufreq_get_one_string(cpu, SCALING_GOVERNOR); in cpufreq_get_policy()
236 if (!policy->governor) { in cpufreq_get_policy()
243 free(policy->governor); in cpufreq_get_policy()
253 if ((!policy) || (!policy->governor)) in cpufreq_put_policy()
256 free(policy->governor); in cpufreq_put_policy()
257 policy->governor = NULL; in cpufreq_put_policy()
294 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors()
295 if (!current->governor) in cpufreq_get_available_governors()
298 memcpy(current->governor, linebuf + pos, i - pos); in cpufreq_get_available_governors()
299 current->governor[ in cpufreq_get_available_governors()
658 cpufreq_modify_policy_governor(unsigned int cpu, char *governor) cpufreq_modify_policy_governor() argument
[all...]
H A Dcpufreq.h14 char *governor; member
18 char *governor; member
186 /* modify a policy by only changing min/max freq or governor
193 int cpufreq_modify_policy_governor(unsigned int cpu, char *governor);
198 * Does only work if userspace governor can be used and no external
/kernel/linux/linux-6.6/tools/power/cpupower/lib/
H A Dcpufreq.c244 policy->governor = sysfs_cpufreq_get_one_string(cpu, SCALING_GOVERNOR); in cpufreq_get_policy()
245 if (!policy->governor) { in cpufreq_get_policy()
252 free(policy->governor); in cpufreq_get_policy()
262 if ((!policy) || (!policy->governor)) in cpufreq_put_policy()
265 free(policy->governor); in cpufreq_put_policy()
266 policy->governor = NULL; in cpufreq_put_policy()
303 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors()
304 if (!current->governor) in cpufreq_get_available_governors()
307 memcpy(current->governor, linebuf + pos, i - pos); in cpufreq_get_available_governors()
308 current->governor[ in cpufreq_get_available_governors()
667 cpufreq_modify_policy_governor(unsigned int cpu, char *governor) cpufreq_modify_policy_governor() argument
[all...]
H A Dcpufreq.h14 char *governor; member
18 char *governor; member
186 /* modify a policy by only changing min/max freq or governor
193 int cpufreq_modify_policy_governor(unsigned int cpu, char *governor);
198 * Does only work if userspace governor can be used and no external
/kernel/linux/linux-5.10/drivers/cpufreq/
H A Dcpufreq.c661 * cpufreq_parse_governor - parse a governor string only for has_target()
763 else if (policy->governor) in show_scaling_governor()
765 policy->governor->name); in show_scaling_governor()
881 if (!policy->governor || !policy->governor->store_setspeed) in store_scaling_setspeed()
888 policy->governor->store_setspeed(policy, freq); in store_scaling_setspeed()
895 if (!policy->governor || !policy->governor->show_setspeed) in show_scaling_setspeed()
898 return policy->governor->show_setspeed(policy, buf); in show_scaling_setspeed()
1069 /* Update policy governor t in cpufreq_init_policy()
2375 cpufreq_register_governor(struct cpufreq_governor *governor) cpufreq_register_governor() argument
2398 cpufreq_unregister_governor(struct cpufreq_governor *governor) cpufreq_unregister_governor() argument
[all...]
/kernel/linux/linux-6.6/drivers/cpufreq/
H A Dcpufreq.c704 * cpufreq_parse_governor - parse a governor string only for has_target()
806 else if (policy->governor) in show_scaling_governor()
808 policy->governor->name); in show_scaling_governor()
926 if (!policy->governor || !policy->governor->store_setspeed) in store_scaling_setspeed()
933 policy->governor->store_setspeed(policy, freq); in store_scaling_setspeed()
940 if (!policy->governor || !policy->governor->show_setspeed) in show_scaling_setspeed()
943 return policy->governor->show_setspeed(policy, buf); in show_scaling_setspeed()
1113 /* Update policy governor t in cpufreq_init_policy()
2491 cpufreq_register_governor(struct cpufreq_governor *governor) cpufreq_register_governor() argument
2514 cpufreq_unregister_governor(struct cpufreq_governor *governor) cpufreq_unregister_governor() argument
[all...]
/kernel/linux/linux-5.10/tools/power/cpupower/utils/
H A Dcpufreq-set.c26 {"governor", required_argument, NULL, 'g'},
36 "- Is the governor you requested available and modprobed?\n" in print_error()
38 "- Trying to set a specific frequency, but userspace governor is not available,\n" in print_error()
40 " or because the userspace governor isn't loaded?\n")); in print_error()
160 if (!new_pol->governor) in do_new_policy()
161 new_pol->governor = cur_pol->governor; in do_new_policy()
186 else if (new_pol->governor) in do_one_cpu()
188 new_pol->governor); in do_one_cpu()
209 .governor in cmd_freq_set()
[all...]
/kernel/linux/linux-6.6/tools/power/cpupower/utils/
H A Dcpufreq-set.c26 {"governor", required_argument, NULL, 'g'},
36 "- Is the governor you requested available and modprobed?\n" in print_error()
38 "- Trying to set a specific frequency, but userspace governor is not available,\n" in print_error()
40 " or because the userspace governor isn't loaded?\n")); in print_error()
160 if (!new_pol->governor) in do_new_policy()
161 new_pol->governor = cur_pol->governor; in do_new_policy()
186 else if (new_pol->governor) in do_one_cpu()
188 new_pol->governor); in do_one_cpu()
209 .governor in cmd_freq_set()
[all...]
/kernel/linux/linux-5.10/tools/power/cpupower/bench/
H A Dparse.c135 strncpy(config->governor, "ondemand", sizeof(config->governor)); in prepare_default_config()
210 else if (strcmp("governor", opt) == 0) { in prepare_config()
211 strncpy(config->governor, val, in prepare_config()
212 sizeof(config->governor)); in prepare_config()
213 config->governor[sizeof(config->governor) - 1] = '\0'; in prepare_config()
H A Dsystem.c37 * sets the cpufreq governor
39 * @param governor cpufreq governor name
40 * @param cpu cpu for which the governor should be set
46 int set_cpufreq_governor(char *governor, unsigned int cpu) in set_cpufreq_governor() argument
49 dprintf("set %s as cpufreq governor\n", governor); in set_cpufreq_governor()
57 if (cpufreq_modify_policy_governor(cpu, governor) != 0) { in set_cpufreq_governor()
59 fprintf(stderr, "error: unable to set %s governor\n", governor); in set_cpufreq_governor()
[all...]
H A Dmain.c24 {"governor", 1, 0, 'g'},
49 printf(" -g, --governor=<governor>\t\tcpufreq governor to test\n"); in usage()
105 strncpy(config->governor, optarg, 14); in main()
106 dprintf("user governor -> %s\n", optarg); in main()
167 "governor=%s\n\n", in main()
175 config->governor); in main()
/kernel/linux/linux-6.6/tools/power/cpupower/bench/
H A Dparse.c135 strncpy(config->governor, "ondemand", sizeof(config->governor)); in prepare_default_config()
210 else if (strcmp("governor", opt) == 0) { in prepare_config()
211 strncpy(config->governor, val, in prepare_config()
212 sizeof(config->governor)); in prepare_config()
213 config->governor[sizeof(config->governor) - 1] = '\0'; in prepare_config()
H A Dsystem.c37 * sets the cpufreq governor
39 * @param governor cpufreq governor name
40 * @param cpu cpu for which the governor should be set
46 int set_cpufreq_governor(char *governor, unsigned int cpu) in set_cpufreq_governor() argument
49 dprintf("set %s as cpufreq governor\n", governor); in set_cpufreq_governor()
57 if (cpufreq_modify_policy_governor(cpu, governor) != 0) { in set_cpufreq_governor()
59 fprintf(stderr, "error: unable to set %s governor\n", governor); in set_cpufreq_governor()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/cpufreq/
H A Dgovernor.sh19 # Find governor's directory path
20 # $1: policy, $2: governor
69 # $1: policy, $2: governor
76 # $1: cpu, $2: governor
84 # $1: cpu, $2: governor
89 # check if governor is available
100 # $1: policy, $2: governor
108 # switch governor
111 printf "\nSwitched governor for $1 to $2\n\n"
114 printf "No files to read for $2 governor\
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/cpufreq/
H A Dgovernor.sh19 # Find governor's directory path
20 # $1: policy, $2: governor
69 # $1: policy, $2: governor
76 # $1: cpu, $2: governor
84 # $1: cpu, $2: governor
89 # check if governor is available
100 # $1: policy, $2: governor
108 # switch governor
111 printf "\nSwitched governor for $1 to $2\n\n"
114 printf "No files to read for $2 governor\
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/
H A Dtsn_lib.sh110 local governor="cpu${cpu}_governor"
120 declare -g "${governor}=$(cat /sys/bus/cpu/devices/cpu${cpu}/cpufreq/scaling_governor)"
132 local governor="cpu${cpu}_governor"
139 echo -n "${!governor}" > \
/kernel/linux/linux-6.6/tools/testing/selftests/amd-pstate/
H A Drun.sh89 governor=$(sed -n ''$i'p' $OUTFILE.backup_governor.log | awk '{print $2}')
91 # switch governor
92 echo $governor > $CPUFREQROOT/$policy/scaling_governor
95 printf "Governor restored to $governor.\n"
98 # $1: governor
113 printf "Switched governor to $1.\n"
H A Dgitsource.sh28 # $1: governor, $2: round, $3: des-perf, $4: freq, $5: load, $6: time $7: energy, $8: PPW
78 # $1: governor, $2: loop
96 # $1: governor, $2: loop
134 # $1: governor
145 # $1: governor
192 # $1: base scaling_driver $2: base governor $3: comparison scaling_driver $4: comparison governor
339 for governor in ${gitsource_governors[*]} ; do
340 printf "\nSpecified governor is $governor\
[all...]
H A Dtbench.sh23 # $1: governor, $2: round, $3: des-perf, $4: freq, $5: load, $6: performance, $7: energy, $8: performance per watt
63 # $1: governor, $2: loop
83 # $1: governor, $2: loop
121 # $1: governor
132 # $1: governor
179 # $1: base scaling_driver $2: base governor $3: comparative scaling_driver $4: comparative governor
324 for governor in ${tbench_governors[*]} ; do
325 printf "\nSpecified governor is $governor\
[all...]

Completed in 17 milliseconds

1234