Home
last modified time | relevance | path

Searched refs:gov (Results 1 - 25 of 45) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/cpuidle/
H A Dgovernor.c33 struct cpuidle_governor *gov; in cpuidle_find_governor() local
35 list_for_each_entry(gov, &cpuidle_governors, governor_list) in cpuidle_find_governor()
36 if (!strncasecmp(str, gov->name, CPUIDLE_NAME_LEN)) in cpuidle_find_governor()
37 return gov; in cpuidle_find_governor()
44 * @gov: the new target governor
47 int cpuidle_switch_governor(struct cpuidle_governor *gov) in cpuidle_switch_governor() argument
51 if (!gov) in cpuidle_switch_governor()
54 if (gov == cpuidle_curr_governor) in cpuidle_switch_governor()
64 cpuidle_curr_governor = gov; in cpuidle_switch_governor()
66 if (gov) { in cpuidle_switch_governor()
80 cpuidle_register_governor(struct cpuidle_governor *gov) cpuidle_register_governor() argument
[all...]
H A Ddriver.c262 struct cpuidle_governor *gov; in cpuidle_register_driver() local
272 gov = cpuidle_find_governor(drv->governor); in cpuidle_register_driver()
273 if (gov) { in cpuidle_register_driver()
275 if (cpuidle_switch_governor(gov) < 0) in cpuidle_register_driver()
/kernel/linux/linux-5.10/drivers/watchdog/
H A Dwatchdog_pretimeout.c17 /* The spinlock protects default_gov, wdd->gov and pretimeout_list */
35 struct watchdog_governor *gov; member
44 if (sysfs_streq(gov_name, priv->gov->name)) in find_governor_by_name()
58 count += sprintf(buf + count, "%s\n", priv->gov->name); in watchdog_pretimeout_available_governors_get()
70 if (wdd->gov) in watchdog_pretimeout_governor_get()
71 count = sprintf(buf, "%s\n", wdd->gov->name); in watchdog_pretimeout_governor_get()
91 wdd->gov = priv->gov; in watchdog_pretimeout_governor_set()
104 if (!wdd->gov) { in watchdog_notify_pretimeout()
109 wdd->gov in watchdog_notify_pretimeout()
114 watchdog_register_governor(struct watchdog_governor *gov) watchdog_register_governor() argument
151 watchdog_unregister_governor(struct watchdog_governor *gov) watchdog_unregister_governor() argument
[all...]
H A Dwatchdog_pretimeout.h16 int watchdog_register_governor(struct watchdog_governor *gov);
17 void watchdog_unregister_governor(struct watchdog_governor *gov);
/kernel/linux/linux-6.6/drivers/watchdog/
H A Dwatchdog_pretimeout.c18 /* The spinlock protects default_gov, wdd->gov and pretimeout_list */
36 struct watchdog_governor *gov; member
45 if (sysfs_streq(gov_name, priv->gov->name)) in find_governor_by_name()
59 count += sysfs_emit_at(buf, count, "%s\n", priv->gov->name); in watchdog_pretimeout_available_governors_get()
71 if (wdd->gov) in watchdog_pretimeout_governor_get()
72 count = sysfs_emit(buf, "%s\n", wdd->gov->name); in watchdog_pretimeout_governor_get()
92 wdd->gov = priv->gov; in watchdog_pretimeout_governor_set()
105 if (!wdd->gov) { in watchdog_notify_pretimeout()
110 wdd->gov in watchdog_notify_pretimeout()
115 watchdog_register_governor(struct watchdog_governor *gov) watchdog_register_governor() argument
152 watchdog_unregister_governor(struct watchdog_governor *gov) watchdog_unregister_governor() argument
[all...]
H A Dwatchdog_pretimeout.h16 int watchdog_register_governor(struct watchdog_governor *gov);
17 void watchdog_unregister_governor(struct watchdog_governor *gov);
/kernel/linux/linux-6.6/drivers/cpuidle/
H A Dgovernor.c33 struct cpuidle_governor *gov; in cpuidle_find_governor() local
35 list_for_each_entry(gov, &cpuidle_governors, governor_list) in cpuidle_find_governor()
36 if (!strncasecmp(str, gov->name, CPUIDLE_NAME_LEN)) in cpuidle_find_governor()
37 return gov; in cpuidle_find_governor()
44 * @gov: the new target governor
47 int cpuidle_switch_governor(struct cpuidle_governor *gov) in cpuidle_switch_governor() argument
51 if (!gov) in cpuidle_switch_governor()
54 if (gov == cpuidle_curr_governor) in cpuidle_switch_governor()
64 cpuidle_curr_governor = gov; in cpuidle_switch_governor()
70 pr_info("cpuidle: using governor %s\n", gov in cpuidle_switch_governor()
79 cpuidle_register_governor(struct cpuidle_governor *gov) cpuidle_register_governor() argument
[all...]
H A Ddriver.c270 struct cpuidle_governor *gov; in cpuidle_register_driver() local
280 gov = cpuidle_find_governor(drv->governor); in cpuidle_register_driver()
281 if (gov) { in cpuidle_register_driver()
283 if (cpuidle_switch_governor(gov) < 0) in cpuidle_register_driver()
/kernel/linux/linux-6.6/drivers/cpufreq/
H A Dcpufreq_governor.c236 struct dbs_governor *gov; in dbs_work_handler() local
240 gov = dbs_governor_of(policy); in dbs_work_handler()
247 gov_update_sample_delay(policy_dbs, gov->gov_dbs_update(policy)); in dbs_work_handler()
350 struct dbs_governor *gov) in alloc_policy_dbs_info()
356 policy_dbs = gov->alloc(); in alloc_policy_dbs_info()
376 struct dbs_governor *gov) in free_policy_dbs_info()
388 gov->free(policy_dbs); in free_policy_dbs_info()
394 struct dbs_governor *gov = dbs_data->gov; in cpufreq_dbs_data_release() local
396 gov in cpufreq_dbs_data_release()
349 alloc_policy_dbs_info(struct cpufreq_policy *policy, struct dbs_governor *gov) alloc_policy_dbs_info() argument
375 free_policy_dbs_info(struct policy_dbs_info *policy_dbs, struct dbs_governor *gov) free_policy_dbs_info() argument
402 struct dbs_governor *gov = dbs_governor_of(policy); cpufreq_dbs_governor_init() local
492 struct dbs_governor *gov = dbs_governor_of(policy); cpufreq_dbs_governor_exit() local
515 struct dbs_governor *gov = dbs_governor_of(policy); cpufreq_dbs_governor_start() local
[all...]
H A Dcpufreq_governor.h40 struct dbs_governor *gov; member
126 struct cpufreq_governor gov; member
145 return container_of(policy->governor, struct dbs_governor, gov); in dbs_governor_of()
H A Dcpufreq.c1108 struct cpufreq_governor *gov = NULL; in cpufreq_init_policy() local
1114 gov = get_governor(policy->last_governor); in cpufreq_init_policy()
1115 if (gov) { in cpufreq_init_policy()
1117 gov->name, policy->cpu); in cpufreq_init_policy()
1119 gov = get_governor(default_governor); in cpufreq_init_policy()
1122 if (!gov) { in cpufreq_init_policy()
1123 gov = cpufreq_default_governor(); in cpufreq_init_policy()
1124 __module_get(gov->owner); in cpufreq_init_policy()
1147 ret = cpufreq_set_policy(policy, gov, pol); in cpufreq_init_policy()
1148 if (gov) in cpufreq_init_policy()
2400 struct cpufreq_governor *gov = cpufreq_fallback_governor(); cpufreq_init_governor() local
2991 struct cpufreq_governor *gov = cpufreq_default_governor(); cpufreq_core_init() local
[all...]
/kernel/linux/linux-5.10/drivers/cpufreq/
H A Dcpufreq_governor.c236 struct dbs_governor *gov; in dbs_work_handler() local
240 gov = dbs_governor_of(policy); in dbs_work_handler()
247 gov_update_sample_delay(policy_dbs, gov->gov_dbs_update(policy)); in dbs_work_handler()
350 struct dbs_governor *gov) in alloc_policy_dbs_info()
356 policy_dbs = gov->alloc(); in alloc_policy_dbs_info()
376 struct dbs_governor *gov) in free_policy_dbs_info()
388 gov->free(policy_dbs); in free_policy_dbs_info()
393 struct dbs_governor *gov = dbs_governor_of(policy); in cpufreq_dbs_governor_init() local
402 policy_dbs = alloc_policy_dbs_info(policy, gov); in cpufreq_dbs_governor_init()
406 /* Protect gov in cpufreq_dbs_governor_init()
349 alloc_policy_dbs_info(struct cpufreq_policy *policy, struct dbs_governor *gov) alloc_policy_dbs_info() argument
375 free_policy_dbs_info(struct policy_dbs_info *policy_dbs, struct dbs_governor *gov) free_policy_dbs_info() argument
479 struct dbs_governor *gov = dbs_governor_of(policy); cpufreq_dbs_governor_exit() local
507 struct dbs_governor *gov = dbs_governor_of(policy); cpufreq_dbs_governor_start() local
[all...]
H A Dcpufreq.c1064 struct cpufreq_governor *gov = NULL; in cpufreq_init_policy() local
1070 gov = get_governor(policy->last_governor); in cpufreq_init_policy()
1071 if (gov) { in cpufreq_init_policy()
1073 gov->name, policy->cpu); in cpufreq_init_policy()
1075 gov = get_governor(default_governor); in cpufreq_init_policy()
1078 if (!gov) { in cpufreq_init_policy()
1079 gov = cpufreq_default_governor(); in cpufreq_init_policy()
1080 __module_get(gov->owner); in cpufreq_init_policy()
1103 ret = cpufreq_set_policy(policy, gov, pol); in cpufreq_init_policy()
1104 if (gov) in cpufreq_init_policy()
2284 struct cpufreq_governor *gov = cpufreq_fallback_governor(); cpufreq_init_governor() local
2867 struct cpufreq_governor *gov = cpufreq_default_governor(); cpufreq_core_init() local
[all...]
H A Dcpufreq_governor.h127 struct cpufreq_governor gov; member
146 return container_of(policy->governor, struct dbs_governor, gov); in dbs_governor_of()
H A Dcpufreq_conservative.c315 .gov = CPUFREQ_DBS_GOVERNOR_INITIALIZER("conservative"),
325 #define CPU_FREQ_GOV_CONSERVATIVE (cs_governor.gov)
/kernel/linux/linux-5.10/drivers/soc/renesas/
H A Drmobile-sysc.c36 struct dev_power_governor *gov; member
114 struct dev_power_governor *gov = rmobile_pd->gov; in rmobile_init_pm_domain() local
126 pm_genpd_init(genpd, gov ? : &simple_qos_governor, false); in rmobile_init_pm_domain()
245 pd->gov = &pm_domain_always_on_gov; in rmobile_setup_pm_domain()
/kernel/linux/linux-6.6/drivers/pmdomain/renesas/
H A Drmobile-sysc.c34 struct dev_power_governor *gov; member
101 struct dev_power_governor *gov = rmobile_pd->gov; in rmobile_init_pm_domain() local
113 pm_genpd_init(genpd, gov ? : &simple_qos_governor, false); in rmobile_init_pm_domain()
232 pd->gov = &pm_domain_always_on_gov; in rmobile_setup_pm_domain()
/kernel/linux/linux-5.10/tools/power/cpupower/utils/
H A Dcpufreq-set.c203 char gov[20]; in cmd_freq_set() local
264 if ((sscanf(optarg, "%19s", gov)) != 1) { in cmd_freq_set()
268 new_pol.governor = gov; in cmd_freq_set()
/kernel/linux/linux-6.6/tools/power/cpupower/utils/
H A Dcpufreq-set.c203 char gov[20]; in cmd_freq_set() local
264 if ((sscanf(optarg, "%19s", gov)) != 1) { in cmd_freq_set()
268 new_pol.governor = gov; in cmd_freq_set()
/kernel/linux/linux-6.6/drivers/devfreq/
H A Dimx-bus.c90 const char *gov = DEVFREQ_GOV_USERSPACE; in imx_bus_probe() local
126 gov, NULL); in imx_bus_probe()
/kernel/linux/linux-5.10/drivers/thermal/
H A Dthermal_core.c202 struct thermal_governor *gov; in thermal_zone_device_set_policy() local
208 gov = __find_governor(strim(policy)); in thermal_zone_device_set_policy()
209 if (!gov) in thermal_zone_device_set_policy()
212 ret = thermal_set_governor(tz, gov); in thermal_zone_device_set_policy()
267 struct thermal_governor **gov; in thermal_register_governors() local
269 for_each_governor_table(gov) { in thermal_register_governors()
270 if (gov == governor) in thermal_register_governors()
272 thermal_unregister_governor(*gov); in thermal_register_governors()
708 struct thermal_governor *gov; in for_each_thermal_governor() local
712 list_for_each_entry(gov, in for_each_thermal_governor()
[all...]
/kernel/linux/linux-6.6/drivers/thermal/
H A Dthermal_core.c198 struct thermal_governor *gov; in thermal_zone_device_set_policy() local
207 gov = __find_governor(strim(policy)); in thermal_zone_device_set_policy()
208 if (!gov) in thermal_zone_device_set_policy()
211 ret = thermal_set_governor(tz, gov); in thermal_zone_device_set_policy()
265 struct thermal_governor **gov; in thermal_register_governors() local
267 for_each_governor_table(gov) { in thermal_register_governors()
268 if (gov == governor) in thermal_register_governors()
270 thermal_unregister_governor(*gov); in thermal_register_governors()
530 struct thermal_governor *gov; in for_each_thermal_governor() local
534 list_for_each_entry(gov, in for_each_thermal_governor()
[all...]
/kernel/linux/linux-5.10/drivers/devfreq/
H A Dimx-bus.c102 const char *gov = DEVFREQ_GOV_USERSPACE; in imx_bus_probe() local
140 gov, NULL); in imx_bus_probe()
/kernel/linux/linux-5.10/include/linux/
H A Dpm_domain.h110 struct dev_power_governor *gov; member
215 struct dev_power_governor *gov, bool is_off);
252 struct dev_power_governor *gov, bool is_off) in pm_genpd_init()
251 pm_genpd_init(struct generic_pm_domain *genpd, struct dev_power_governor *gov, bool is_off) pm_genpd_init() argument
/kernel/linux/linux-6.6/include/linux/
H A Dpm_domain.h126 struct dev_power_governor *gov; member
232 struct dev_power_governor *gov, bool is_off);
272 struct dev_power_governor *gov, bool is_off) in pm_genpd_init()
271 pm_genpd_init(struct generic_pm_domain *genpd, struct dev_power_governor *gov, bool is_off) pm_genpd_init() argument

Completed in 17 milliseconds

12