Home
last modified time | relevance | path

Searched refs:governor (Results 1 – 25 of 78) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/devfreq/
Ddevfreq.c294 struct devfreq_governor *governor; in try_then_request_governor() local
304 governor = find_devfreq_governor(name); in try_then_request_governor()
305 if (IS_ERR(governor)) { in try_then_request_governor()
318 governor = find_devfreq_governor(name); in try_then_request_governor()
321 return governor; in try_then_request_governor()
402 if (!devfreq->governor) in update_devfreq()
406 err = devfreq->governor->get_target_freq(devfreq, &freq); in update_devfreq()
459 if (devfreq->governor->interrupt_driven) in devfreq_monitor_start()
489 if (devfreq->governor->interrupt_driven) in devfreq_monitor_stop()
520 if (devfreq->governor->interrupt_driven) in devfreq_monitor_suspend()
[all …]
DKconfig9 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
Dgovernor.h66 int devfreq_add_governor(struct devfreq_governor *governor);
67 int devfreq_remove_governor(struct devfreq_governor *governor);
/kernel/linux/linux-5.10/drivers/cpufreq/
DKconfig13 clock speed, you need to either enable a dynamic cpufreq governor
38 prompt "Default CPUFreq governor"
44 This option sets which CPUFreq governor shall be loaded at
51 Use the CPUFreq governor 'performance' as default. This sets
59 Use the CPUFreq governor 'powersave' as default. This sets
67 Use the CPUFreq governor 'userspace' as default. This allows
70 to enable the userspace governor manually.
78 Use the CPUFreq governor 'ondemand' as default. This allows
82 governor. If unsure have a look at the help section of the
83 driver. Fallback governor will be the performance governor.
[all …]
Dcpufreq.c761 else if (policy->governor) in show_scaling_governor()
763 policy->governor->name); in show_scaling_governor()
879 if (!policy->governor || !policy->governor->store_setspeed) in store_scaling_setspeed()
886 policy->governor->store_setspeed(policy, freq); in store_scaling_setspeed()
893 if (!policy->governor || !policy->governor->show_setspeed) in show_scaling_setspeed()
896 return policy->governor->show_setspeed(policy, buf); in show_scaling_setspeed()
1136 cpufreq_set_policy(policy, policy->governor, policy->policy); in refresh_frequency_limits()
1337 policy->governor = NULL; in cpufreq_online()
1581 strncpy(policy->last_governor, policy->governor->name, in cpufreq_offline()
2261 if (!policy->governor) in cpufreq_init_governor()
[all …]
/kernel/linux/linux-5.10/tools/power/cpupower/bench/
DREADME-BENCH9 - 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 …]
Dparse.c135 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()
Dsystem.c46 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()
Dmain.c105 strncpy(config->governor, optarg, 14); in main()
175 config->governor); in main()
/kernel/linux/linux-5.10/tools/power/cpupower/lib/
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[i - pos] = '\0'; in cpufreq_get_available_governors()
[all …]
Dcpufreq.h14 char *governor; member
18 char *governor; member
193 int cpufreq_modify_policy_governor(unsigned int cpu, char *governor);
/kernel/linux/linux-5.10/drivers/thermal/
Dthermal_core.c78 if (tz->governor && tz->governor->bind_to_tz) { in bind_previous_governor()
79 if (tz->governor->bind_to_tz(tz)) { in bind_previous_governor()
82 failed_gov_name, tz->governor->name, tz->type); in bind_previous_governor()
83 tz->governor = NULL; in bind_previous_governor()
102 if (tz->governor && tz->governor->unbind_from_tz) in thermal_set_governor()
103 tz->governor->unbind_from_tz(tz); in thermal_set_governor()
114 tz->governor = new_gov; in thermal_set_governor()
119 int thermal_register_governor(struct thermal_governor *governor) in thermal_register_governor() argument
125 if (!governor) in thermal_register_governor()
131 if (!__find_governor(governor->name)) { in thermal_register_governor()
[all …]
DKconfig26 trip point crossed, cooling device update or governor
91 prompt "Default Thermal governor"
94 This option sets which thermal governor shall be loaded at
101 Use the step_wise governor as default. This throttles the
108 Use the fair_share governor as default. This throttles the
124 system and device power allocation. This governor can only
130 bool "Fair-share thermal governor"
132 Enable this to manage platform thermals using fair-share governor.
135 bool "Step_wise thermal governor"
138 governor.
[all …]
/kernel/linux/linux-5.10/tools/power/cpupower/utils/
Dcpufreq-set.c160 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 = NULL, in cmd_freq_set()
257 if (new_pol.governor) in cmd_freq_set()
268 new_pol.governor = gov; in cmd_freq_set()
/kernel/linux/linux-5.10/drivers/cpuidle/
DKconfig22 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
/kernel/linux/linux-5.10/Documentation/driver-api/thermal/
Dpower_allocator.rst2 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 …]
/kernel/linux/linux-5.10/Documentation/admin-guide/pm/
Dcpufreq.rst60 As a rule, each governor implements one, possibly parametrized, scaling
81 to bypass the governor layer and implement their own performance scaling
148 scaling governor to it (to begin with, that is the default scaling governor
151 the governor's ``->init()`` callback which is expected to initialize all of the
153 a governor ``sysfs`` interface to it. Next, the governor is started by
166 on the configuration and capabilities of the scaling driver and the governor.
171 to use the scaling governor previously used with the policy that became
172 "inactive" (and is re-initialized now) instead of the default governor.
177 necessary to restart the scaling governor so that it can take the new online CPU
178 into account. That is achieved by invoking the governor's ``->stop`` and
[all …]
Dcpuidle.rst118 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 governors can be read from the :file:`available_governors`, and the governor
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-class-devfreq17 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
48 no polling. This value is meaningless if the governor is
49 not polling; thus. If the governor is not using
75 userspace governor is in effect.
/kernel/linux/linux-5.10/Documentation/driver-api/pm/
Dcpuidle.rst43 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 …]
/kernel/linux/linux-5.10/Documentation/ABI/obsolete/
Dsysfs-cpuidle5 current_governor_ro shows current using cpuidle governor, but read only.
6 with the update that cpuidle governor can be changed at runtime in default,
/kernel/linux/linux-5.10/tools/testing/selftests/cpufreq/
Dgovernor.sh138 for governor in $governors; do
139 $1 $2 $governor
/kernel/linux/linux-5.10/tools/power/cpupower/po/
Dit.po235 " 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 …]
Dpt.po233 " 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 …]
Dfr.po235 " 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 …]

1234