Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/devfreq/
Ddevfreq.c171 if (!devfreq->governor) in update_devfreq()
175 err = devfreq->governor->get_target_freq(devfreq, &freq); in update_devfreq()
407 if (devfreq->governor) in _remove_devfreq()
408 devfreq->governor->event_handler(devfreq, in _remove_devfreq()
445 struct devfreq_governor *governor; in devfreq_add_device() local
503 governor = find_devfreq_governor(devfreq->governor_name); in devfreq_add_device()
504 if (!IS_ERR(governor)) in devfreq_add_device()
505 devfreq->governor = governor; in devfreq_add_device()
506 if (devfreq->governor) in devfreq_add_device()
507 err = devfreq->governor->event_handler(devfreq, in devfreq_add_device()
[all …]
DKconfig7 in order to let the governor provided to devfreq choose an
10 Each device may have its own governor and policy. Devfreq can
37 similar as ONDEMAND governor of CPUFREQ does. A device with
40 values to the governor with data field at devfreq_add_device().
46 This governor always returns UINT_MAX as frequency so that
54 This governor always returns 0 as frequency so that
62 This governor returns the user configured frequency if there
64 Otherwise, the governor does not change the frequnecy
Dgovernor.h38 extern int devfreq_add_governor(struct devfreq_governor *governor);
39 extern int devfreq_remove_governor(struct devfreq_governor *governor);
/linux-4.4.14/tools/power/cpupower/lib/
Dcpufreq.c64 if ((!policy) || (!policy->governor)) in cpufreq_put_policy()
67 free(policy->governor); in cpufreq_put_policy()
68 policy->governor = NULL; in cpufreq_put_policy()
88 if (tmp->governor) in cpufreq_put_available_governors()
89 free(tmp->governor); in cpufreq_put_available_governors()
152 if (!policy || !(policy->governor)) in cpufreq_set_policy()
171 int cpufreq_modify_policy_governor(unsigned int cpu, char *governor) in cpufreq_modify_policy_governor() argument
173 if ((!governor) || (strlen(governor) > 19)) in cpufreq_modify_policy_governor()
176 return sysfs_modify_freq_policy_governor(cpu, governor); in cpufreq_modify_policy_governor()
Dsysfs.c255 policy->governor = sysfs_cpufreq_get_one_string(cpu, SCALING_GOVERNOR); in sysfs_get_freq_policy()
256 if (!policy->governor) { in sysfs_get_freq_policy()
263 free(policy->governor); in sysfs_get_freq_policy()
303 current->governor = malloc(i - pos + 1); in sysfs_get_freq_available_governors()
304 if (!current->governor) in sysfs_get_freq_available_governors()
307 memcpy(current->governor, linebuf + pos, i - pos); in sysfs_get_freq_available_governors()
308 current->governor[i - pos] = '\0'; in sysfs_get_freq_available_governors()
318 if (first->governor) in sysfs_get_freq_available_governors()
319 free(first->governor); in sysfs_get_freq_available_governors()
547 int sysfs_modify_freq_policy_governor(unsigned int cpu, char *governor) in sysfs_modify_freq_policy_governor() argument
[all …]
Dcpufreq.h26 char *governor; member
30 char *governor; member
206 extern int cpufreq_modify_policy_governor(unsigned int cpu, char *governor);
Dsysfs.h29 extern int sysfs_modify_freq_policy_governor(unsigned int cpu, char *governor);
/linux-4.4.14/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.
Dsysfs.txt19 In this case users can switch the governor at run time by writing
88 implementation of a particular governor. In the ladder governor, for
/linux-4.4.14/drivers/cpufreq/
DKconfig12 clock speed, you need to either enable a dynamic cpufreq governor
50 prompt "Default CPUFreq governor"
54 This option sets which CPUFreq governor shall be loaded at
61 Use the CPUFreq governor 'performance' as default. This sets
69 Use the CPUFreq governor 'powersave' as default. This sets
77 Use the CPUFreq governor 'userspace' as default. This allows
80 to enable the userspace governor manually.
87 Use the CPUFreq governor 'ondemand' as default. This allows
91 governor. If unsure have a look at the help section of the
92 driver. Fallback governor will be the performance governor.
[all …]
Dcpufreq.c519 struct cpufreq_governor **governor) in cpufreq_parse_governor() argument
551 *governor = t; in cpufreq_parse_governor()
643 else if (policy->governor) in show_scaling_governor()
645 policy->governor->name); in show_scaling_governor()
666 &new_policy.governor)) in store_scaling_governor()
746 if (!policy->governor || !policy->governor->store_setspeed) in store_scaling_setspeed()
753 policy->governor->store_setspeed(policy, freq); in store_scaling_setspeed()
760 if (!policy->governor || !policy->governor->show_setspeed) in show_scaling_setspeed()
763 return policy->governor->show_setspeed(policy, buf); in show_scaling_setspeed()
973 policy->governor->name, policy->cpu); in cpufreq_init_policy()
[all …]
Dcpufreq_governor.c44 if (dbs_data->cdata->governor == GOV_ONDEMAND) { in dbs_check_cpu()
79 if (dbs_data->cdata->governor == GOV_ONDEMAND) in dbs_check_cpu()
243 if (dbs_data->cdata->governor == GOV_CONSERVATIVE) { in dbs_timer()
266 if (dbs_data->cdata->governor == GOV_CONSERVATIVE) { in set_sampling_rate()
341 ret = cdata->init(dbs_data, !policy->governor->initialized); in cpufreq_governor_init()
373 cdata->exit(dbs_data, !policy->governor->initialized); in cpufreq_governor_init()
400 cdata->exit(dbs_data, policy->governor->initialized == 1); in cpufreq_governor_exit()
426 if (cdata->governor == GOV_CONSERVATIVE) { in cpufreq_governor_start()
461 if (cdata->governor == GOV_CONSERVATIVE) { in cpufreq_governor_start()
Dcpufreq_performance.c41 .governor = cpufreq_governor_performance,
Dcpufreq_powersave.c41 .governor = cpufreq_governor_powersave,
Dcpufreq_conservative.c34 .governor = cs_cpufreq_governor_dbs,
141 if (policy->governor != &cpufreq_gov_conservative) in dbs_cpufreq_notifier()
367 .governor = GOV_CONSERVATIVE,
Dcpufreq_ondemand.c263 if (policy->governor != &cpufreq_gov_ondemand) { in update_sampling_rate()
519 .governor = GOV_ONDEMAND,
557 if (policy->governor != &cpufreq_gov_ondemand) in od_set_powersave_bias()
594 .governor = od_cpufreq_governor_dbs,
Dcpufreq_userspace.c97 .governor = cpufreq_governor_userspace,
DKconfig.x8610 The driver implements an internal governor and will become
11 the scaling driver and governor for Sandy bridge processors.
141 governor, which allows it to make more power-conscious frequency
Dcpufreq_governor.h200 int governor; member
/linux-4.4.14/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.c58 int set_cpufreq_governor(char *governor, unsigned int cpu) in set_cpufreq_governor() argument
61 dprintf("set %s as cpufreq governor\n", governor); in set_cpufreq_governor()
69 if (cpufreq_modify_policy_governor(cpu, governor) != 0) { in set_cpufreq_governor()
71 fprintf(stderr, "error: unable to set %s governor\n", governor); in set_cpufreq_governor()
Dparse.c138 strncpy(config->governor, "ondemand", 8); in prepare_default_config()
214 strncpy(config->governor, val, in prepare_config()
215 sizeof(config->governor)); in prepare_config()
216 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);
Dexample.cfg11 governor = ondemand
Dparse.h32 char governor[15]; /* cpufreq governor */ member
Dbenchmark.c159 if (set_cpufreq_governor(config->governor, config->cpu) != 0) in start_benchmark()
/linux-4.4.14/Documentation/cpu-freq/
Dgovernors.txt65 and CPUfreq governor to be used
68 / the cpufreq governor decides
87 The CPUfreq governor "performance" sets the CPU statically to the
95 The CPUfreq governor "powersave" sets the CPU statically to the
103 The CPUfreq governor "userspace" allows the user, or any userspace
112 The CPUfreq governor "ondemand" sets the CPU depending on the
173 when ondemand governor would have targeted 1000 MHz, it will target
179 frequency is chosen instead of ondemand governor's original target.
195 The CPUfreq governor "conservative", much like the "ondemand"
196 governor, sets the CPU depending on the current usage. It differs in
[all …]
Duser-guide.txt132 be set. Then, a "governor" must be selected. Such a "governor" decides
134 "governor" is the "userspace" governor. This one allows the user - or
158 work with the ondemand governor, -1
162 frequency for a kernel governor or
171 currently activated governor in
174 governor you can change it. Please note
200 the governor and cpufreq core, in KHz. This is
215 If you have selected the "userspace" governor which allows you to
Dintel-pstate.txt13 performance governor sets the max_perf_pct and min_perf_pct to 100; that is,
14 the governor selects the highest available P state to maximize the performance
15 of the core. The internal powersave governor selects the appropriate P state
22 internal Intel P-state governor code is disabled.
57 the internal governor algorythm. These files are located at
Dpcc-cpufreq.txt87 However, OSPM remains in control of policy. The governor (eg: "ondemand")
157 frequency, within limits, requested by the governor. A frequency does not have
Dcpu-drivers.txt114 policy->governor must contain the "default policy" for
136 "policy,governor,min,max") shall be set, this policy must be validated
/linux-4.4.14/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.c79 max ? max_pctg : 0, policy->governor); in proc_cpufreq_output()
327 printf("%s, ", governors->governor); in debug_output_one()
330 printf("%s\n", governors->governor); in debug_output_one()
344 policy->governor); in debug_output_one()
439 printf("%lu %lu %s\n", policy->min, policy->max, policy->governor); in get_policy()
454 printf("%s ", governors->governor); in get_available_governors()
457 printf("%s\n", governors->governor); in get_available_governors()
/linux-4.4.14/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 …]
Dsysfs-api.txt159 .governor_name: Name of the thermal governor used for this zone
182 |---policy: Thermal governor used for this zone
325 the thermal zone. Used by the power allocator governor. For
331 The proportional term of the power allocator governor's PID
339 The proportional term of the power allocator governor's PID
347 The integral term of the power allocator governor's PID
354 The derivative term of the power allocator governor's PID
362 governor's PID controller starts accumulating errors. For
/linux-4.4.14/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.
Dsysfs-devices-system-cpu119 Idle policy (governor) is differentiated from idle mechanism
/linux-4.4.14/drivers/thermal/
Dthermal_core.c92 if (tz->governor && tz->governor->bind_to_tz) { in bind_previous_governor()
93 if (tz->governor->bind_to_tz(tz)) { in bind_previous_governor()
96 failed_gov_name, tz->governor->name, tz->type); in bind_previous_governor()
97 tz->governor = NULL; in bind_previous_governor()
116 if (tz->governor && tz->governor->unbind_from_tz) in thermal_set_governor()
117 tz->governor->unbind_from_tz(tz); in thermal_set_governor()
128 tz->governor = new_gov; in thermal_set_governor()
133 int thermal_register_governor(struct thermal_governor *governor) in thermal_register_governor() argument
139 if (!governor) in thermal_register_governor()
145 if (__find_governor(governor->name) == NULL) { in thermal_register_governor()
[all …]
DKconfig57 prompt "Default Thermal governor"
60 This option sets which thermal governor shall be loaded at
67 Use the step_wise governor as default. This throttles the
74 Use the fair_share governor as default. This throttles the
90 system and device power allocation. This governor can only
96 bool "Fair-share thermal governor"
98 Enable this to manage platform thermals using fair-share governor.
101 bool "Step_wise thermal governor"
104 governor.
107 bool "Bang Bang thermal governor"
[all …]
/linux-4.4.14/drivers/cpuidle/
DKconfig21 bool "Ladder governor (for periodic timer tick)"
25 bool "Menu governor (for tickless system)"
DMakefile5 obj-y += cpuidle.o driver.o governor.o sysfs.o governors/
/linux-4.4.14/include/linux/
Dcpufreq.h81 struct cpufreq_governor *governor; /* see below */ member
445 int (*governor) (struct cpufreq_policy *policy, member
465 int cpufreq_register_governor(struct cpufreq_governor *governor);
466 void cpufreq_unregister_governor(struct cpufreq_governor *governor);
Ddevfreq.h161 const struct devfreq_governor *governor; member
Dthermal.h206 struct thermal_governor *governor; member
/linux-4.4.14/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 …]
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 …]
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 …]
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 …]
Dcs.po240 " minimum CPU frequency - maximum CPU frequency - governor\n"
350 "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"
571 " governor to be available and loaded\n"
620 "- Is the governor you requested available and modprobed?\n"
622 "- Trying to set a specific frequency, but userspace governor is not "
626 " or because the userspace governor isn't loaded?\n"
645 "-g/--governor parameters\n"
[all …]
/linux-4.4.14/drivers/devfreq/event/
DKconfig12 may be used by devfreq governor and other subsystem.
/linux-4.4.14/arch/powerpc/platforms/cell/
Dcpufreq_spudemand.c142 .governor = spu_gov_govern,
DKconfig105 This governor checks for spu usage to adjust the cpu frequency.
/linux-4.4.14/drivers/platform/x86/
Dacerhdf.c730 if (strcmp(thz_dev->governor->name, in acerhdf_register_thermal()
/linux-4.4.14/Documentation/
Dkernel-per-CPU-kthreads.txt185 governor is not required, possibly enlisting the aid of
189 avoid the CPU-frequency governor periodically running
/linux-4.4.14/drivers/usb/gadget/
DKconfig123 an CPU on-demand governor. Especially if DMA is doing IO to