| /linux/tools/testing/selftests/cpufreq/ |
| H A D | governor.sh | 25 # Find governor's directory path 26 # $1: policy, $2: governor 50 printf "Governor backup done for $1: $CUR_GOV\n" 55 printf "Governor frequency backup done for $1: $CUR_FREQ\n" 67 printf "Governor restored for $1 to $CUR_GOV\n" 72 printf "Governor frequency restored for $1: $CUR_FREQ\n" 90 # $1: policy, $2: governor 97 # $1: cpu, $2: governor 105 # $1: cpu, $2: governor 110 # check if governor i [all...] |
| H A D | module.sh | 15 source governor.sh 106 # find governor name based on governor module name 107 # $1: governor module name 125 # $1: governor string, $2: governor module, $3: policy 133 # switch to new governor 137 # try removing module, it should fail as governor is used 141 printf "WARN: rmmod $2 succeeded even if governor is used\n" 147 # switch back to old governor 153 # Insert cpufreq governor module and perform basic tests 154 # $1: cpufreq-governor module to insert [all …]
|
| H A D | main.sh | 6 source governor.sh 29 modtest: test driver or governor modules. Only to be used with -d or -g options, 30 sptest1: Simple governor switch to produce lockdep. 31 sptest2: Concurrent governor switch to produce lockdep. 32 sptest3: Governor races, shuffle between governors quickly. 35 [-g <governor's module name: only with \"-t modtest>\"] 94 g) # --governor-mod-name (Name of the governor module) 138 ktap_exit_fail_msg "No driver or governor module passed with -d or -g"
|
| /linux/tools/power/cpupower/bench/ |
| H A D | README-BENCH | 9 - Identify average reaction time of a governor to CPU load changes 10 - (Stress) Testing whether a cpufreq low level driver or governor works 14 processes with a higher prio than the governor's kernel thread 27 cpufreq-bench helps to test the condition of a given cpufreq governor. 28 For that purpose, it compares the performance governor to a configured 57 governor. 58 Then the above test runs are processed using the performance governor 59 and the governor to test. The time the calculation really needed 60 with the dynamic freq scaling governor is compared with the time needed 64 Example of expected results with ondemand governor: [all …]
|
| H A D | system.c | 37 * 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()
|
| H A D | benchmark.c | 71 * governor and compares the used time for same calculations done 72 * with the configured powersave governor 101 /* set the cpufreq governor to "performance" which disables in start_benchmark() 124 /* do some sleep/load cycles with the performance governor */ in start_benchmark() 144 /* set the powersave governor which activates P-State switching in start_benchmark() 146 if (set_cpufreq_governor(config->governor, config->cpu) != 0) in start_benchmark() 150 * powersave governor */ in start_benchmark()
|
| H A D | main.c | 24 {"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()
|
| /linux/drivers/thermal/ |
| H A D | thermal_core.c | 47 * Governor section: set of functions to handle thermal governors 50 * 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… in bind_previous_governor() 82 failed_gov_name, tz->governor->name, tz->type); in bind_previous_governor() [all …]
|
| /linux/drivers/devfreq/ |
| H A D | Kconfig | 8 in order to let the governor provided to devfreq choose an 11 Each device may have its own governor and policy. Devfreq can 38 similar as ONDEMAND governor of CPUFREQ does. A device with 41 values to the governor with data field at devfreq_add_device(). 47 This governor always returns UINT_MAX as frequency so that 55 This governor always returns 0 as frequency so that 63 This governor returns the user configured frequency if there 65 Otherwise, the governor does not change the frequency 72 device. This governor does not change the frequency by itself 73 through sysfs entries. The passive governor recommends that
|
| /linux/Documentation/driver-api/thermal/ |
| H A D | power_allocator.rst | 2 Power allocator governor tunables 8 The governor works optimally with the following two passive trip points: 10 1. "switch on" trip point: temperature above which the governor 15 "switch on" trip point. This the target temperature the governor 22 The power allocator governor implements a 104 thermal governor allows the configuration of two proportional term 115 value of `k_pu` will result in the governor granting very high power 168 the exact power that the governor requests. When the temperature 183 Cooling devices controlled by this governor must supply the additional 202 allocator governor to calculate how much power to give to each cooling [all …]
|
| /linux/Documentation/driver-api/pm/ |
| H A D | cpuidle.rst | 43 A CPU idle time (``CPUIdle``) governor is a bundle of policy code invoked when 52 The governor itself is represented by a struct cpuidle_governor object 57 For the governor to be available at all, that object needs to be registered 60 add the governor to the global list of available governors and, if it is the 63 governor currently in use, or the name of the new governor was passed to the 64 kernel as the value of the ``cpuidle.governor=`` command line parameter, the new 65 governor will be used from that point on (there can be only one ``CPUIdle`` 66 governor in use at a time). Also, user space can choose the ``CPUIdle`` 67 governor to use at run time via ``sysfs``. 80 The role of this callback is to prepare the governor for handling the [all …]
|
| /linux/include/linux/ |
| H A D | devfreq.h | 18 /* DEVFREQ governor name */ 54 * A device and a specific governor may have their 56 * this is governor-specific, a governor using this 150 * @governor: method how to choose frequency based on the usage. 160 * @data: devfreq driver pass to governors, governor should not change it. 178 * Note that when a governor accesses entries in struct devfreq in its 180 * devfreq_governor, the governor should protect its access with the 181 * struct mutex lock in struct devfreq. A governor may use this mutex 190 const struct devfreq_governor *governor; member 289 * the governor may consider slowing the frequency down. [all …]
|
| /linux/tools/power/cpupower/utils/ |
| H A D | cpufreq-set.c | 26 {"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() 207 .governor in cmd_freq_set() [all...] |
| /linux/drivers/cpufreq/ |
| H A D | cpufreq.c | 665 * cpufreq_parse_governor - parse a governor string only for has_target() 666 * @str_governor: Governor name. 788 else if (policy->governor) in show_scaling_governor() 789 return sysfs_emit(buf, "%s\n", policy->governor->name); in show_scaling_governor() 907 if (!policy->governor || !policy->governor->store_setspeed) in store_scaling_setspeed() 914 policy->governor->store_setspeed(policy, freq); in store_scaling_setspeed() 921 if (!policy->governor || !policy->governor->show_setspeed) in show_scaling_setspeed() 924 return policy->governor->show_setspeed(policy, buf); in show_scaling_setspeed() 1111 /* Update policy governor to the one used before hotplug. */ in cpufreq_init_policy() 1115 pr_debug("Restoring governor %s for cpu %d\n", in cpufreq_init_policy() [all …]
|
| H A D | cpufreq_governor.h | 34 * od_*: On-demand governor 35 * cs_*: Conservative governor 38 /* Governor demand based switching data (per-policy or global). */ 125 /* Common Governor data across policies */ 147 return container_of(policy->governor, struct dbs_governor, gov); in dbs_governor_of() 150 /* Governor callback routines */ 169 /* Governor specific operations */
|
| /linux/tools/power/cpupower/man/ |
| H A D | cpupower-frequency-set.1 | 15 new minimum CPU frequency the governor may select. 18 new maximum CPU frequency the governor may select. 20 \fB\-g\fR \fB\-\-governor\fR <GOV> 21 new cpufreq governor. 24 specific frequency to be set. Requires userspace governor to be available and loaded.
|
| H A D | cpupower-idle-set.1 | 35 Depending on the used cpuidle governor, implementing the kernel policy 40 governor is always available, if CONFIG_CPU_IDLE is selected, the 41 menu governor additionally requires CONFIG_NO_HZ. 44 implementation of a particular governor. In the ladder governor, for
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-devfreq | 17 What: /sys/class/devfreq/.../governor 21 The /sys/class/devfreq/.../governor show or set the name of the 22 governor used by the corresponding devfreq object. 37 The /sys/class/devfreq/.../target_freq shows the next governor 102 no polling. This value is meaningless if the governor is 115 userspace governor is in effect.
|
| H A D | sysfs-class-thermal | 122 The derivative term of the power allocator governor's PID 130 The integral term of the power allocator governor's PID 139 The proportional term of the power allocator governor's PID 149 The proportional term of the power allocator governor's PID 161 governor's PID controller starts accumulating errors. For 192 the thermal zone. Used by the power allocator governor. For
|
| /linux/tools/testing/selftests/amd-pstate/ |
| H A D | gitsource.sh | 28 # $1: governor, $2: round, $3: des-perf, $4: freq, $5: load, $6: time $7: energy, $8: PPW 81 # $1: governor, $2: loop 101 # $1: governor, $2: loop 139 # $1: governor 150 # $1: governor 197 # $1: base scaling_driver $2: base governor $3: comparison scaling_driver $4: comparison governor 336 get_lines_csv_gitsource "Governor" 339 …store_csv_gitsource "Governor" "Round" "Des-perf" "Freq" "Load" "Time" "Energy" "Performance Per W… 344 for governor in ${gitsource_governors[*]} ; do 345 printf "\nSpecified governor is $governor\n\n" [all …]
|
| H A D | tbench.sh | 23 # $1: governor, $2: round, $3: des-perf, $4: freq, $5: load, $6: performance, $7: energy, $8: perfo… 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 316 get_lines_csv_tbench "Governor" 319 …store_csv_tbench "Governor" "Round" "Des-perf" "Freq" "Load" "Performance" "Energy" "Performance P… 324 for governor in ${tbench_governors[*]} ; do 325 printf "\nSpecified governor is $governor\n\n" [all …]
|
| H A D | run.sh | 83 printf "Governor $cur_gov backup done.\n" 93 governor=$(sed -n ''$i'p' $OUTFILE.backup_governor.log | awk '{print $2}') 95 # switch governor 96 echo $governor > $CPUFREQROOT/$policy/scaling_governor 99 printf "Governor restored to $governor.\n" 102 # $1: governor 117 printf "Switched governor to $1.\n"
|
| /linux/tools/power/cpupower/ |
| H A D | cpupower.sh | 12 elif test -n "${GOVERNOR}${MIN_FREQ}${MAX_FREQ}" 15 ${GOVERNOR:+ -g "$GOVERNOR"} \
|
| H A D | cpupower-service.conf | 13 # Define CPU governor 15 #GOVERNOR='ondemand' 23 # Requires userspace governor to be available.
|
| /linux/tools/power/cpupower/po/ |
| H A D | pt.po | 233 " minimum CPU frequency - maximum CPU frequency - governor\n" 344 "The governor \"%s\" may decide which speed to use\n" 553 " -d FREQ, --min FREQ new minimum CPU frequency the governor may " 562 " -u FREQ, --max FREQ new maximum CPU frequency the governor may " 570 msgid " -g GOV, --governor GOV new cpufreq governor\n" 571 msgstr " -g GOV, --governor GOV novo regulador do cpufreq\n" 577 " governor to be available and loaded\n" 627 "- Is the governor you requested available and modprobed?\n" 629 "- Trying to set a specific frequency, but userspace governor is not " 633 " or because the userspace governor isn't loaded?\n" [all …]
|