| /Linux-v5.4/drivers/devfreq/ |
| D | devfreq.c | 235 struct devfreq_governor *governor; in try_then_request_governor() local 245 governor = find_devfreq_governor(name); in try_then_request_governor() 246 if (IS_ERR(governor)) { in try_then_request_governor() 259 governor = find_devfreq_governor(name); in try_then_request_governor() 262 return governor; in try_then_request_governor() 346 if (!devfreq->governor) in update_devfreq() 350 err = devfreq->governor->get_target_freq(devfreq, &freq); in update_devfreq() 615 struct devfreq_governor *governor; in devfreq_add_device() local 717 governor = try_then_request_governor(devfreq->governor_name); in devfreq_add_device() 718 if (IS_ERR(governor)) { in devfreq_add_device() [all …]
|
| D | Kconfig | 9 in order to let the governor provided to devfreq choose an 12 Each device may have its own governor and policy. Devfreq can 39 similar as ONDEMAND governor of CPUFREQ does. A device with 42 values to the governor with data field at devfreq_add_device(). 48 This governor always returns UINT_MAX as frequency so that 56 This governor always returns 0 as frequency so that 64 This governor returns the user configured frequency if there 66 Otherwise, the governor does not change the frequency 73 device. This governor does not change the frequency by itself 74 through sysfs entries. The passive governor recommends that
|
| D | governor.h | 64 extern int devfreq_add_governor(struct devfreq_governor *governor); 65 extern int devfreq_remove_governor(struct devfreq_governor *governor);
|
| /Linux-v5.4/drivers/cpufreq/ |
| D | Kconfig | 13 clock speed, you need to either enable a dynamic cpufreq governor 38 prompt "Default CPUFreq governor" 42 This option sets which CPUFreq governor shall be loaded at 49 Use the CPUFreq governor 'performance' as default. This sets 57 Use the CPUFreq governor 'powersave' as default. This sets 65 Use the CPUFreq governor 'userspace' as default. This allows 68 to enable the userspace governor manually. 75 Use the CPUFreq governor 'ondemand' as default. This allows 79 governor. If unsure have a look at the help section of the 80 driver. Fallback governor will be the performance governor. [all …]
|
| D | cpufreq.c | 660 policy->governor = t; in cpufreq_parse_governor() 753 else if (policy->governor) in show_scaling_governor() 755 policy->governor->name); in show_scaling_governor() 785 if (new_policy.governor) in store_scaling_governor() 786 module_put(new_policy.governor->owner); in store_scaling_governor() 864 if (!policy->governor || !policy->governor->store_setspeed) in store_scaling_setspeed() 871 policy->governor->store_setspeed(policy, freq); in store_scaling_setspeed() 878 if (!policy->governor || !policy->governor->show_setspeed) in show_scaling_setspeed() 881 return policy->governor->show_setspeed(policy, buf); in show_scaling_setspeed() 1062 policy->governor->name, policy->cpu); in cpufreq_init_policy() [all …]
|
| /Linux-v5.4/tools/power/cpupower/lib/ |
| D | cpufreq.c | 235 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[i - pos] = '\0'; in cpufreq_get_available_governors() [all …]
|
| D | cpufreq.h | 14 char *governor; member 18 char *governor; member 187 int cpufreq_modify_policy_governor(unsigned int cpu, char *governor);
|
| /Linux-v5.4/tools/power/cpupower/bench/ |
| 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 …]
|
| D | parse.c | 135 strncpy(config->governor, "ondemand", sizeof(config->governor)); in prepare_default_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()
|
| D | system.c | 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()
|
| D | main.c | 105 strncpy(config->governor, optarg, 14); in main() 175 config->governor); in main()
|
| D | system.h | 11 int set_cpufreq_governor(char *governor, unsigned int cpu);
|
| /Linux-v5.4/drivers/thermal/ |
| D | thermal_core.c | 84 if (tz->governor && tz->governor->bind_to_tz) { in bind_previous_governor() 85 if (tz->governor->bind_to_tz(tz)) { in bind_previous_governor() 88 failed_gov_name, tz->governor->name, tz->type); in bind_previous_governor() 89 tz->governor = NULL; in bind_previous_governor() 108 if (tz->governor && tz->governor->unbind_from_tz) in thermal_set_governor() 109 tz->governor->unbind_from_tz(tz); in thermal_set_governor() 120 tz->governor = new_gov; in thermal_set_governor() 125 int thermal_register_governor(struct thermal_governor *governor) in thermal_register_governor() argument 131 if (!governor) in thermal_register_governor() 137 if (!__find_governor(governor->name)) { in thermal_register_governor() [all …]
|
| D | Kconfig | 81 prompt "Default Thermal governor" 84 This option sets which thermal governor shall be loaded at 91 Use the step_wise governor as default. This throttles the 98 Use the fair_share governor as default. This throttles the 114 system and device power allocation. This governor can only 120 bool "Fair-share thermal governor" 122 Enable this to manage platform thermals using fair-share governor. 125 bool "Step_wise thermal governor" 128 governor. 131 bool "Bang Bang thermal governor" [all …]
|
| /Linux-v5.4/tools/power/cpupower/utils/ |
| D | cpufreq-set.c | 156 if (!new_pol->governor) in do_new_policy() 157 new_pol->governor = cur_pol->governor; in do_new_policy() 182 else if (new_pol->governor) in do_one_cpu() 184 new_pol->governor); in do_one_cpu() 205 .governor = NULL, in cmd_freq_set() 253 if (new_pol.governor) in cmd_freq_set() 264 new_pol.governor = gov; in cmd_freq_set()
|
| /Linux-v5.4/drivers/cpuidle/ |
| D | Kconfig | 22 bool "Ladder governor (for periodic timer tick)" 25 bool "Menu governor (for tickless system)" 28 bool "Timer events oriented (TEO) governor (for tickless systems)" 30 This governor implements a simplified idle state selection method 37 bool "Haltpoll governor (for virtualized systems)" 40 This governor implements haltpoll idle state selection, to be
|
| /Linux-v5.4/Documentation/driver-api/thermal/ |
| 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 102 thermal governor allows the configuration of two proportional term 113 value of `k_pu` will result in the governor granting very high power 166 the exact power that the governor requests. When the temperature 181 Cooling devices controlled by this governor must supply the additional 200 allocator governor to calculate how much power to give to each cooling [all …]
|
| /Linux-v5.4/Documentation/admin-guide/pm/ |
| D | cpufreq.rst | 61 As a rule, each governor implements one, possibly parametrized, scaling 82 to bypass the governor layer and implement their own performance scaling 149 scaling governor to it (to begin with, that is the default scaling governor 152 governor's ``->init()`` callback which is expected to initialize all of the 154 a governor ``sysfs`` interface to it. Next, the governor is started by 167 on the configuration and capabilities of the scaling driver and the governor. 172 to use the scaling governor previously used with the policy that became 173 "inactive" (and is re-initialized now) instead of the default governor. 178 necessary to restart the scaling governor so that it can take the new online CPU 179 into account. That is achieved by invoking the governor's ``->stop`` and [all …]
|
| D | cpuidle.rst | 118 calls into a code module referred to as the *governor* that belongs to the CPU 122 processor hardware to enter the idle state selected by the governor. 124 The role of the governor is to find an idle state most suitable for the 134 taken into account by the governor, the *target residency* and the (worst-case) 147 There are two types of information that can influence the governor's decisions. 148 First of all, the governor knows the time until the closest timer event. That 154 when that may happen. The governor can only see how much time the CPU actually 158 governor uses that information depends on what algorithm is implemented by it 159 and that is the primary reason for having more than one governor in the 166 governor at run time if the ``cpuidle_sysfs_switch`` command line parameter has [all …]
|
| /Linux-v5.4/Documentation/ABI/testing/ |
| D | sysfs-class-devfreq | 10 What: /sys/class/devfreq/.../governor 14 The /sys/class/devfreq/.../governor show or set the name of the 15 governor used by the corresponding devfreq object. 30 The /sys/class/devfreq/.../target_freq shows the next governor 41 no polling. This value is meaningless if the governor is 42 not polling; thus. If the governor is not using 64 userspace governor is in effect.
|
| /Linux-v5.4/Documentation/driver-api/pm/ |
| D | cpuidle.rst | 48 A CPU idle time (``CPUIdle``) governor is a bundle of policy code invoked when 57 The governor itself is represented by a |struct cpuidle_governor| object 62 For the governor to be available at all, that object needs to be registered 65 add the governor to the global list of available governors and, if it is the 68 governor currently in use, or the name of the new governor was passed to the 69 kernel as the value of the ``cpuidle.governor=`` command line parameter, the new 70 governor will be used from that point on (there can be only one ``CPUIdle`` 71 governor in use at a time). Also, if ``cpuidle_sysfs_switch`` is passed to the 72 kernel in the command line, user space can choose the ``CPUIdle`` governor to 86 The role of this callback is to prepare the governor for handling the [all …]
|
| /Linux-v5.4/tools/testing/selftests/cpufreq/ |
| D | governor.sh | 138 for governor in $governors; do 139 $1 $2 $governor
|
| /Linux-v5.4/tools/power/cpupower/po/ |
| D | fr.po | 235 " minimum CPU frequency - maximum CPU frequency - governor\n" 345 "The governor \"%s\" may decide which speed to use\n" 547 " -d FREQ, --min FREQ new minimum CPU frequency the governor may " 556 " -u FREQ, --max FREQ new maximum CPU frequency the governor may " 564 msgid " -g GOV, --governor GOV new cpufreq governor\n" 565 msgstr " -g GOV, --governor GOV active le régulateur GOV\n" 571 " governor to be available and loaded\n" 617 "- Is the governor you requested available and modprobed?\n" 619 "- Trying to set a specific frequency, but userspace governor is not " 623 " or because the userspace governor isn't loaded?\n" [all …]
|
| D | it.po | 235 " minimum CPU frequency - maximum CPU frequency - governor\n" 345 "The governor \"%s\" may decide which speed to use\n" 550 " -d FREQ, --min FREQ new minimum CPU frequency the governor may " 559 " -u FREQ, --max FREQ new maximum CPU frequency the governor may " 567 msgid " -g GOV, --governor GOV new cpufreq governor\n" 568 msgstr " -g GOV, --governor GOV nuovo gestore cpufreq\n" 574 " governor to be available and loaded\n" 626 "- Is the governor you requested available and modprobed?\n" 628 "- Trying to set a specific frequency, but userspace governor is not " 632 " or because the userspace governor isn't loaded?\n" [all …]
|
| 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 …]
|