Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/devfreq/
Ddevfreq.c268 if (!devfreq->governor) in update_devfreq()
272 err = devfreq->governor->get_target_freq(devfreq, &freq); in update_devfreq()
537 if (devfreq->governor) in devfreq_dev_release()
538 devfreq->governor->event_handler(devfreq, in devfreq_dev_release()
562 struct devfreq_governor *governor; in devfreq_add_device() local
651 governor = find_devfreq_governor(devfreq->governor_name); in devfreq_add_device()
652 if (IS_ERR(governor)) { in devfreq_add_device()
655 err = PTR_ERR(governor); in devfreq_add_device()
659 devfreq->governor = governor; in devfreq_add_device()
660 err = devfreq->governor->event_handler(devfreq, DEVFREQ_GOV_START, in devfreq_add_device()
[all …]
DKconfig8 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
Dgovernor.h67 extern int devfreq_add_governor(struct devfreq_governor *governor);
68 extern int devfreq_remove_governor(struct devfreq_governor *governor);
/Linux-v4.19/Documentation/cpuidle/
Dgovernor.txt11 cpuidle governor is policy routine that decides what idle state to enter at
12 any given time. cpuidle core uses different callbacks to the governor.
14 * enable() to enable governor for a particular device
15 * disable() to disable governor for a particular device
18 by the governor for some record keeping.
20 More than one governor can be registered at the same time and
22 More than one governor part is supported for developers to easily experiment
23 with different governors. By default, most optimal governor based on your
Dcore.txt11 idle policy (governor) from idle mechanism (driver) and provides a
22 best governor based on governor ratings.
/Linux-v4.19/drivers/cpufreq/
DKconfig12 clock speed, you need to either enable a dynamic cpufreq governor
41 prompt "Default CPUFreq governor"
45 This option sets which CPUFreq governor shall be loaded at
52 Use the CPUFreq governor 'performance' as default. This sets
60 Use the CPUFreq governor 'powersave' as default. This sets
68 Use the CPUFreq governor 'userspace' as default. This allows
71 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.c627 policy->governor = t; in cpufreq_parse_governor()
732 else if (policy->governor) in show_scaling_governor()
734 policy->governor->name); in show_scaling_governor()
759 if (new_policy.governor) in store_scaling_governor()
760 module_put(new_policy.governor->owner); in store_scaling_governor()
838 if (!policy->governor || !policy->governor->store_setspeed) in store_scaling_setspeed()
845 policy->governor->store_setspeed(policy, freq); in store_scaling_setspeed()
852 if (!policy->governor || !policy->governor->show_setspeed) in show_scaling_setspeed()
855 return policy->governor->show_setspeed(policy, buf); in show_scaling_setspeed()
1032 policy->governor->name, policy->cpu); in cpufreq_init_policy()
[all …]
/Linux-v4.19/tools/power/cpupower/lib/
Dcpufreq.c236 policy->governor = sysfs_cpufreq_get_one_string(cpu, SCALING_GOVERNOR); in cpufreq_get_policy()
237 if (!policy->governor) { in cpufreq_get_policy()
244 free(policy->governor); in cpufreq_get_policy()
254 if ((!policy) || (!policy->governor)) in cpufreq_put_policy()
257 free(policy->governor); in cpufreq_put_policy()
258 policy->governor = NULL; in cpufreq_put_policy()
295 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors()
296 if (!current->governor) in cpufreq_get_available_governors()
299 memcpy(current->governor, linebuf + pos, i - pos); in cpufreq_get_available_governors()
300 current->governor[i - pos] = '\0'; in cpufreq_get_available_governors()
[all …]
Dcpufreq.h22 char *governor; member
26 char *governor; member
195 int cpufreq_modify_policy_governor(unsigned int cpu, char *governor);
/Linux-v4.19/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 …]
Dsystem.c59 int set_cpufreq_governor(char *governor, unsigned int cpu) in set_cpufreq_governor() argument
62 dprintf("set %s as cpufreq governor\n", governor); in set_cpufreq_governor()
70 if (cpufreq_modify_policy_governor(cpu, governor) != 0) { in set_cpufreq_governor()
72 fprintf(stderr, "error: unable to set %s governor\n", governor); in set_cpufreq_governor()
Dparse.c148 strncpy(config->governor, "ondemand", 8); in prepare_default_config()
224 strncpy(config->governor, val, in prepare_config()
225 sizeof(config->governor)); in prepare_config()
226 config->governor[sizeof(config->governor) - 1] = '\0'; in prepare_config()
Dmain.c118 strncpy(config->governor, optarg, 14); in main()
188 config->governor); in main()
Dsystem.h24 int set_cpufreq_governor(char *governor, unsigned int cpu);
/Linux-v4.19/tools/power/cpupower/utils/
Dcpufreq-set.c157 if (!new_pol->governor) in do_new_policy()
158 new_pol->governor = cur_pol->governor; in do_new_policy()
183 else if (new_pol->governor) in do_one_cpu()
185 new_pol->governor); in do_one_cpu()
206 .governor = NULL, in cmd_freq_set()
254 if (new_pol.governor) in cmd_freq_set()
265 new_pol.governor = gov; in cmd_freq_set()
Dcpufreq-info.c81 max ? max_pctg : 0, policy->governor); in proc_cpufreq_output()
338 policy->governor); in get_policy()
357 printf("%s ", governors->governor); in get_available_governors()
360 printf("%s\n", governors->governor); in get_available_governors()
/Linux-v4.19/drivers/thermal/
Dthermal_core.c84 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 …]
DKconfig81 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-v4.19/Documentation/thermal/
Dpower_allocator.txt1 Power allocator governor tunables
7 The governor works optimally with the following two passive trip points:
9 1. "switch on" trip point: temperature above which the governor
14 "switch on" trip point. This the target temperature the governor
21 The power allocator governor implements a
101 thermal governor allows the configuration of two proportional term
112 value of `k_pu` will result in the governor granting very high power
163 the exact power that the governor requests. When the temperature
178 Cooling devices controlled by this governor must supply the additional
190 allocator governor to calculate how much power to give to each cooling
[all …]
/Linux-v4.19/Documentation/admin-guide/pm/
Dcpufreq.rst57 As a rule, each governor implements one, possibly parametrized, scaling
78 to bypass the governor layer and implement their own performance scaling
145 scaling governor to it (to begin with, that is the default scaling governor
148 governor's ``->init()`` callback which is expected to initialize all of the
150 a governor ``sysfs`` interface to it. Next, the governor is started by
163 on the configuration and capabilities of the scaling driver and the governor.
168 to use the scaling governor previously used with the policy that became
169 "inactive" (and is re-initialized now) instead of the default governor.
174 necessary to restart the scaling governor so that it can take the new online CPU
175 into account. That is achieved by invoking the governor's ``->stop`` and
[all …]
/Linux-v4.19/Documentation/ABI/testing/
Dsysfs-class-devfreq10 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-v4.19/tools/testing/selftests/cpufreq/
Dgovernor.sh138 for governor in $governors; do
139 $1 $2 $governor
/Linux-v4.19/drivers/cpuidle/
DKconfig21 bool "Ladder governor (for periodic timer tick)"
24 bool "Menu governor (for tickless system)"
/Linux-v4.19/tools/power/cpupower/po/
Dde.po236 " minimum CPU frequency - maximum CPU frequency - governor\n"
346 "The governor \"%s\" may decide which speed to use\n"
556 " -d FREQ, --min FREQ new minimum CPU frequency the governor may "
565 " -u FREQ, --max FREQ new maximum CPU frequency the governor may "
573 msgid " -g GOV, --governor GOV new cpufreq governor\n"
580 " governor to be available and loaded\n"
631 "- Is the governor you requested available and modprobed?\n"
633 "- Trying to set a specific frequency, but userspace governor is not "
637 " or because the userspace governor isn't loaded?\n"
655 "-g/--governor parameters\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 …]

123