Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/drivers/devfreq/
A Ddevfreq.c321 return governor; in try_then_request_governor()
933 devfreq->governor = governor; in devfreq_add_device()
1255 if (!governor) { in devfreq_add_governor()
1275 if (!strncmp(devfreq->governor->name, governor->name, in devfreq_add_governor()
1292 devfreq->governor = governor; in devfreq_add_governor()
1332 governor); in devm_devfreq_add_governor()
1346 if (!governor) { in devfreq_remove_governor()
1363 if (!strncmp(devfreq->governor->name, governor->name, in devfreq_remove_governor()
1404 if (!df->governor) in governor_show()
1431 if (df->governor == governor) { in governor_store()
[all …]
A 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
A Dgovernor.h109 int devfreq_add_governor(struct devfreq_governor *governor);
110 int devfreq_remove_governor(struct devfreq_governor *governor);
113 struct devfreq_governor *governor);
/linux-6.3-rc2/drivers/cpufreq/
A DKconfig38 prompt "Default CPUFreq governor"
70 to enable the userspace governor manually.
83 driver. Fallback governor will be the performance governor.
96 driver. Fallback governor will be the performance governor.
106 governor will be 'performance'.
111 tristate "'performance' governor"
122 tristate "'powersave' governor"
146 tristate "'ondemand' cpufreq policy governor"
150 The governor does a periodic polling and
165 tristate "'conservative' cpufreq governor"
[all …]
A Dcpufreq.c762 else if (policy->governor) in show_scaling_governor()
764 policy->governor->name); in show_scaling_governor()
882 if (!policy->governor || !policy->governor->store_setspeed) in store_scaling_setspeed()
896 if (!policy->governor || !policy->governor->show_setspeed) in show_scaling_setspeed()
1341 policy->governor = NULL; in cpufreq_online()
2341 if (!policy->governor) in cpufreq_init_governor()
2352 policy->governor = gov; in cpufreq_init_governor()
2396 if (!policy->governor) in cpufreq_start_governor()
2442 if (!governor) in cpufreq_register_governor()
2466 if (!governor) in cpufreq_unregister_governor()
[all …]
/linux-6.3-rc2/tools/power/cpupower/bench/
A 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.
59 and the governor to test. The time the calculation really needed
64 Example of expected results with ondemand governor:
73 For example if ondemand governor is configured to have a 50ms
97 governor in average behaves as expected.
[all …]
A 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()
A 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()
/linux-6.3-rc2/drivers/thermal/
A Dthermal_core.c76 if (tz->governor && tz->governor->bind_to_tz) { in bind_previous_governor()
81 tz->governor = NULL; in bind_previous_governor()
100 if (tz->governor && tz->governor->unbind_from_tz) in thermal_set_governor()
112 tz->governor = new_gov; in thermal_set_governor()
123 if (!governor) in thermal_register_governor()
149 if (pos->governor) in thermal_register_governor()
175 if (!governor) in thermal_unregister_governor()
186 if (!strncasecmp(pos->governor->name, governor->name, in thermal_unregister_governor()
263 (*governor)->name); in thermal_register_governors()
270 if (gov == governor) in thermal_register_governors()
[all …]
A DKconfig26 trip point crossed, cooling device update or governor
95 prompt "Default Thermal governor"
120 The Userspace governor allows to get trip point crossed
136 bool "Fair-share thermal governor"
141 bool "Step_wise thermal governor"
144 governor.
147 bool "Bang Bang thermal governor"
154 governor to be enabled (e.g. acerhdf).
157 bool "User_space thermal governor"
162 bool "Power allocator thermal governor"
[all …]
/linux-6.3-rc2/tools/power/cpupower/lib/
A Dcpufreq.c245 if (!policy->governor) { in cpufreq_get_policy()
252 free(policy->governor); in cpufreq_get_policy()
265 free(policy->governor); in cpufreq_put_policy()
266 policy->governor = NULL; in cpufreq_put_policy()
304 if (!current->governor) in cpufreq_get_available_governors()
318 if (first->governor) in cpufreq_get_available_governors()
319 free(first->governor); in cpufreq_get_available_governors()
336 if (tmp->governor) in cpufreq_put_available_governors()
337 free(tmp->governor); in cpufreq_put_available_governors()
671 if ((!governor) || (strlen(governor) > 19)) in cpufreq_modify_policy_governor()
[all …]
A Dcpufreq.h14 char *governor; member
18 char *governor; member
193 int cpufreq_modify_policy_governor(unsigned int cpu, char *governor);
/linux-6.3-rc2/tools/power/cpupower/utils/
A 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()
/linux-6.3-rc2/drivers/cpuidle/
A 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
/linux-6.3-rc2/Documentation/admin-guide/pm/
A Dcpufreq.rst148 scaling governor to it (to begin with, that is the default scaling governor
153 a governor ``sysfs`` interface to it. Next, the governor is started by
298 The scaling governor currently attached to this policy or (if the
354 subdirectory containing the governor tunables is the name of the governor
420 This governor exposes only one tunable:
428 of the governor which might be excessive without it.
440 This governor uses CPU load as a CPU frequency selection metric.
467 This governor exposes the following tunables:
470 This is how often the governor's worker routine should run, in
553 This governor uses CPU load as a CPU frequency selection metric.
[all …]
A Dcpuidle.rst122 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
159 and that is the primary reason for having more than one governor in the
244 to leave it as is and the governor needs to take that into account.
258 ``CPUIdle`` governor on it will be ``ladder``.
266 The ``menu`` governor is the default ``CPUIdle`` governor for tickless systems.
345 The timer events oriented (TEO) governor is an alternative ``CPUIdle`` governor
397 idle state object selected by the governor).
474 governor is implemented, disabling an idle state prevents that governor from
609 the name of an available governor (e.g. ``cpuidle.governor=menu``) and that
[all …]
/linux-6.3-rc2/Documentation/driver-api/thermal/
A 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
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
263 Limitations of the power allocator governor
269 governor's `throttle()` function) repetitively, the governor response
[all …]
/linux-6.3-rc2/Documentation/driver-api/pm/
A Dcpuidle.rst52 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
63 governor currently in use, or the name of the new governor was passed to the
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
91 until the ``->enable()`` governor callback is invoked for that CPU
99 Called to make the governor stop handling the (logical) CPU represented
135 of the governor to succeed).
[all …]
/linux-6.3-rc2/Documentation/ABI/testing/
A 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
99 no polling. This value is meaningless if the governor is
112 userspace governor is in effect.
/linux-6.3-rc2/Documentation/ABI/obsolete/
A 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,
/linux-6.3-rc2/tools/testing/selftests/cpufreq/
A Dgovernor.sh138 for governor in $governors; do
139 $1 $2 $governor
/linux-6.3-rc2/tools/testing/selftests/net/forwarding/
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"
/linux-6.3-rc2/tools/testing/selftests/amd-pstate/
A Dgitsource.sh339 for governor in ${gitsource_governors[*]} ; do
340 printf "\nSpecified governor is $governor\n\n"
341 switch_governor $governor
342 loop_gitsource $governor
343 gather_gitsource $governor
A Dtbench.sh324 for governor in ${tbench_governors[*]} ; do
325 printf "\nSpecified governor is $governor\n\n"
326 switch_governor $governor
327 loop_tbench $governor
328 gather_tbench $governor
A Drun.sh89 governor=$(sed -n ''$i'p' $OUTFILE.backup_governor.log | awk '{print $2}')
92 echo $governor > $CPUFREQROOT/$policy/scaling_governor
95 printf "Governor restored to $governor.\n"

Completed in 40 milliseconds

1234