Home
last modified time | relevance | path

Searched refs:policy (Results 1 – 25 of 1020) sorted by relevance

12345678910>>...41

/openbmc/linux/drivers/cpufreq/
H A Dcpufreq.c193 return policy && cpumask_test_cpu(cpu, policy->cpus) ? policy : NULL; in cpufreq_cpu_get_raw()
201 if (!policy || IS_ERR(policy->clk)) { in cpufreq_generic_get()
360 freqs->policy = policy; in cpufreq_notify_transition()
1140 pol = policy->policy; in cpufreq_init_policy()
1182 cpufreq_set_policy(policy, policy->governor, policy->policy); in refresh_frequency_limits()
1662 policy->last_policy = policy->policy; in __cpufreq_offline()
2445 policy->governor->exit(policy); in cpufreq_exit_governor()
2472 policy->governor->limits(policy); in cpufreq_start_governor()
2485 policy->governor->stop(policy); in cpufreq_stop_governor()
2637 policy->min, policy->max); in cpufreq_set_policy()
[all …]
H A Dcpufreq_userspace.c49 return sprintf(buf, "%u\n", policy->cur); in show_speed()
60 policy->governor_data = setspeed; in cpufreq_userspace_policy_init()
67 kfree(policy->governor_data); in cpufreq_userspace_policy_exit()
68 policy->governor_data = NULL; in cpufreq_userspace_policy_exit()
76 BUG_ON(!policy->cur); in cpufreq_userspace_policy_start()
81 *setspeed = policy->cur; in cpufreq_userspace_policy_start()
105 policy->cpu, policy->min, policy->max, policy->cur, *setspeed); in cpufreq_userspace_policy_limits()
107 if (policy->max < *setspeed) in cpufreq_userspace_policy_limits()
108 __cpufreq_driver_target(policy, policy->max, CPUFREQ_RELATION_H); in cpufreq_userspace_policy_limits()
109 else if (policy->min > *setspeed) in cpufreq_userspace_policy_limits()
[all …]
H A Dfreq_table.c54 policy->min = policy->cpuinfo.min_freq = min_freq; in cpufreq_frequency_table_cpuinfo()
55 policy->max = max_freq; in cpufreq_frequency_table_cpuinfo()
61 policy->max = policy->cpuinfo.max_freq = max_freq; in cpufreq_frequency_table_cpuinfo()
63 if (policy->min == ~0) in cpufreq_frequency_table_cpuinfo()
77 policy->min, policy->max, policy->cpu); in cpufreq_frequency_table_verify()
84 if ((freq >= policy->min) && (freq <= policy->max)) { in cpufreq_frequency_table_verify()
99 policy->min, policy->max, policy->cpu); in cpufreq_frequency_table_verify()
111 if (!policy->freq_table) in cpufreq_generic_frequency_table_verify()
114 return cpufreq_frequency_table_verify(policy, policy->freq_table); in cpufreq_generic_frequency_table_verify()
151 if ((freq < policy->min) || (freq > policy->max)) in cpufreq_table_index_unsorted()
[all …]
H A Dsh-cpufreq.c33 struct cpufreq_policy *policy; member
45 struct cpufreq_policy *policy = target->policy; in __sh_cpufreq_target() local
46 int cpu = policy->cpu; in __sh_cpufreq_target()
60 if (freq < (policy->min * 1000) || freq > (policy->max * 1000)) in __sh_cpufreq_target()
84 struct cpufreq_target data = { .policy = policy, .freq = target_freq }; in sh_cpufreq_target()
98 cpufreq_verify_within_cpu_limits(policy); in sh_cpufreq_verify()
109 unsigned int cpu = policy->cpu; in sh_cpufreq_cpu_init()
124 policy->freq_table = freq_table; in sh_cpufreq_cpu_init()
129 policy->min = policy->cpuinfo.min_freq = in sh_cpufreq_cpu_init()
131 policy->max = policy->cpuinfo.max_freq = in sh_cpufreq_cpu_init()
[all …]
H A Damd-pstate.c547 return policy->cur; in amd_pstate_fast_switch()
680 policy->max = policy->cpuinfo.max_freq; in amd_pstate_set_boost()
756 policy->cur = policy->cpuinfo.min_freq; in amd_pstate_cpu_init()
1172 policy->cur = policy->cpuinfo.min_freq; in amd_pstate_epp_cpu_init()
1184 policy->min = policy->cpuinfo.min_freq; in amd_pstate_epp_cpu_init()
1185 policy->max = policy->cpuinfo.max_freq; in amd_pstate_epp_cpu_init()
1193 policy->policy = CPUFREQ_POLICY_PERFORMANCE; in amd_pstate_epp_cpu_init()
1195 policy->policy = CPUFREQ_POLICY_POWERSAVE; in amd_pstate_epp_cpu_init()
1298 policy->cpuinfo.max_freq, policy->max); in amd_pstate_epp_set_policy()
1300 cpudata->policy = policy->policy; in amd_pstate_epp_set_policy()
[all …]
H A Dgx-suspmod.c339 policy->cpu = 0; in cpufreq_gx_verify()
352 policy->min = tmp_freq; in cpufreq_gx_verify()
353 if (policy->min > policy->max) in cpufreq_gx_verify()
354 policy->max = tmp_freq; in cpufreq_gx_verify()
358 policy->max = tmp_freq; in cpufreq_gx_verify()
359 if (policy->max < policy->min) in cpufreq_gx_verify()
360 policy->max = policy->min; in cpufreq_gx_verify()
381 policy->cpu = 0; in cpufreq_gx_target()
402 if (!policy || policy->cpu != 0) in cpufreq_gx_cpu_init()
418 policy->cpu = 0; in cpufreq_gx_cpu_init()
[all …]
H A Dacpi-cpufreq.c173 set_boost(policy, val); in store_cpb()
370 struct cpufreq_policy *policy; in get_cur_freq_on_cpu() local
377 if (unlikely(!policy)) in get_cur_freq_on_cpu()
380 data = policy->driver_data; in get_cur_freq_on_cpu()
447 cpumask_of(policy->cpu) : policy->cpus; in acpi_cpufreq_target()
706 policy->driver_data = data; in acpi_cpufreq_cpu_init()
861 policy->cur = acpi_cpufreq_guess_freq(data, policy->cpu); in acpi_cpufreq_cpu_init()
888 !(policy_is_shared(policy) && policy->shared_type != CPUFREQ_SHARED_TYPE_ANY); in acpi_cpufreq_cpu_init()
904 policy->driver_data = NULL; in acpi_cpufreq_cpu_init()
917 policy->driver_data = NULL; in acpi_cpufreq_cpu_exit()
[all …]
H A Dcppc_cpufreq.c398 freqs.old = policy->cur; in cppc_cpufreq_set_target()
488 int cpu = policy->cpu; in get_perf_level_count()
517 struct cpufreq_policy *policy; in cppc_get_cpu_power() local
705 policy->driver_data = NULL; in cppc_cpufreq_put_cpu_data()
760 policy->shared_type); in cppc_cpufreq_cpu_init()
851 if (!policy) in cppc_cpufreq_get_rate()
856 cpufreq_cpu_put(policy); in cppc_cpufreq_get_rate()
891 policy->cpuinfo.max_freq = policy->max; in cppc_cpufreq_set_boost()
893 ret = freq_qos_update_request(policy->max_freq_req, policy->max); in cppc_cpufreq_set_boost()
939 if (!policy) in hisi_cppc_cpufreq_get_rate()
[all …]
H A Dcpufreq_governor.c137 for_each_cpu(j, policy->cpus) { in dbs_update()
235 struct cpufreq_policy *policy; in dbs_work_handler() local
239 policy = policy_dbs->policy; in dbs_work_handler()
240 gov = dbs_governor_of(policy); in dbs_work_handler()
325 struct cpufreq_policy *policy = policy_dbs->policy; in gov_set_update_util() local
343 for_each_cpu(i, policy->cpus) in gov_clear_update_util()
360 policy_dbs->policy = policy; in alloc_policy_dbs_info()
408 if (policy->governor_data) in cpufreq_dbs_governor_init()
472 policy->governor_data = NULL; in cpufreq_dbs_governor_init()
521 if (!policy->cur) in cpufreq_dbs_governor_start()
[all …]
H A Dlongrun.c42 policy->policy = CPUFREQ_POLICY_PERFORMANCE; in longrun_get_policy()
44 policy->policy = CPUFREQ_POLICY_POWERSAVE; in longrun_get_policy()
53 policy->min = policy->max = longrun_high_freq; in longrun_get_policy()
55 policy->min = longrun_low_freq + msr_lo * in longrun_get_policy()
60 policy->cpu = 0; in longrun_get_policy()
76 if (!policy) in longrun_set_policy()
97 switch (policy->policy) { in longrun_set_policy()
127 if (!policy) in longrun_verify_policy()
130 policy->cpu = 0; in longrun_verify_policy()
257 if (policy->cpu != 0) in longrun_cpu_init()
[all …]
H A Dppc_cbe_cpufreq.c62 cpu = of_get_cpu_node(policy->cpu, NULL); in cbe_cpufreq_cpu_init()
72 if (!cbe_get_cpu_pmd_regs(policy->cpu) || in cbe_cpufreq_cpu_init()
73 !cbe_get_cpu_mic_tm_regs(policy->cpu)) { in cbe_cpufreq_cpu_init()
100 policy->cpuinfo.transition_latency = 25000; in cbe_cpufreq_cpu_init()
105 policy->cur = cbe_freqs[cur_pmode].frequency; in cbe_cpufreq_cpu_init()
108 cpumask_copy(policy->cpus, cpu_sibling_mask(policy->cpu)); in cbe_cpufreq_cpu_init()
111 policy->freq_table = cbe_freqs; in cbe_cpufreq_cpu_init()
112 cbe_cpufreq_pmi_policy_init(policy); in cbe_cpufreq_cpu_init()
118 cbe_cpufreq_pmi_policy_exit(policy); in cbe_cpufreq_cpu_exit()
127 policy->cpu, in cbe_cpufreq_target()
[all …]
H A Dqcom-cpufreq-hw.c57 struct cpufreq_policy *policy; member
153 if (!policy) in qcom_cpufreq_get_freq()
156 data = policy->driver_data; in qcom_cpufreq_get_freq()
171 if (!policy) in qcom_cpufreq_hw_get()
174 data = policy->driver_data; in qcom_cpufreq_hw_get()
295 policy->freq_table = table; in qcom_cpufreq_hw_read_lut()
326 struct cpufreq_policy *policy = data->policy; in qcom_lmh_dcvs_notify() local
443 data->policy = policy; in qcom_cpufreq_hw_lmh_init()
524 policy->cpu); in qcom_cpufreq_hw_cpu_init()
552 policy->driver_data = data; in qcom_cpufreq_hw_cpu_init()
[all …]
H A Dapple-soc-cpufreq.c107 struct apple_cpu_priv *priv = policy->driver_data; in apple_soc_cpufreq_get_rate()
164 if (apple_soc_cpufreq_set_target(policy, policy->cached_resolved_idx) < 0) in apple_soc_cpufreq_fast_switch()
167 return policy->freq_table[policy->cached_resolved_idx].frequency; in apple_soc_cpufreq_fast_switch()
180 policy->cpus, &args); in apple_soc_cpufreq_find_cluster()
214 cpu_dev = get_cpu_device(policy->cpu); in apple_soc_cpufreq_init()
273 policy->driver_data = priv; in apple_soc_cpufreq_init()
274 policy->freq_table = freq_table; in apple_soc_cpufreq_init()
281 policy->dvfs_possible_from_any_cpu = true; in apple_soc_cpufreq_init()
282 policy->fast_switch_possible = true; in apple_soc_cpufreq_init()
283 policy->suspend_freq = freq_table[0].frequency; in apple_soc_cpufreq_init()
[all …]
H A Dcpufreq_ondemand.c124 else if (policy->cur == policy->max) in dbs_freq_increase()
149 if (policy->cur < policy->max) in od_update()
151 dbs_freq_increase(policy, policy->max); in od_update()
156 min_f = policy->cpuinfo.min_freq; in od_update()
157 max_f = policy->cpuinfo.max_freq; in od_update()
191 od_update(policy); in od_dbs_update()
396 ondemand_powersave_bias_init(policy); in od_start()
429 struct cpufreq_policy *policy; in od_set_powersave_bias() local
437 policy = cpufreq_cpu_get_raw(cpu); in od_set_powersave_bias()
438 if (!policy || policy->governor != &CPU_FREQ_GOV_ONDEMAND) in od_set_powersave_bias()
[all …]
H A Dmediatek-cpufreq-hw.c60 struct cpufreq_policy *policy; in mtk_cpufreq_get_cpu_power() local
64 if (!policy) in mtk_cpufreq_get_cpu_power()
67 data = policy->driver_data; in mtk_cpufreq_get_cpu_power()
96 struct cpufreq_policy *policy; in mtk_cpufreq_hw_get() local
99 policy = cpufreq_cpu_get_raw(cpu); in mtk_cpufreq_hw_get()
100 if (!policy) in mtk_cpufreq_hw_get()
103 data = policy->driver_data; in mtk_cpufreq_hw_get()
176 policy->cpus, &args); in mtk_cpu_resources_init()
214 policy->driver_data = data; in mtk_cpu_resources_init()
237 data = policy->driver_data; in mtk_cpufreq_hw_cpu_init()
[all …]
/openbmc/linux/fs/crypto/
H A Dpolicy.c554 if (copy_to_user(arg, &policy, sizeof(policy.v1))) in fscrypt_ioctl_get_policy()
572 BUILD_BUG_ON(sizeof(arg.policy) != sizeof(*policy)); in fscrypt_ioctl_get_policy_ex()
786 policy = kzalloc(sizeof(*policy), GFP_KERNEL); in fscrypt_parse_test_dummy_encryption()
787 if (!policy) in fscrypt_parse_test_dummy_encryption()
810 if (fscrypt_policies_equal(policy, dummy_policy->policy)) in fscrypt_parse_test_dummy_encryption()
816 dummy_policy->policy = policy; in fscrypt_parse_test_dummy_encryption()
817 policy = NULL; in fscrypt_parse_test_dummy_encryption()
835 if (!p1->policy && !p2->policy) in fscrypt_dummy_policies_equal()
837 if (!p1->policy || !p2->policy) in fscrypt_dummy_policies_equal()
839 return fscrypt_policies_equal(p1->policy, p2->policy); in fscrypt_dummy_policies_equal()
[all …]
/openbmc/linux/include/linux/
H A Dcpufreq.h474 policy->max = clamp(policy->max, min, max); in cpufreq_verify_within_limits()
475 policy->min = clamp(policy->min, min, policy->max); in cpufreq_verify_within_limits()
481 cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq, in cpufreq_verify_within_cpu_limits()
643 if (policy->max < policy->cur) in cpufreq_policy_apply_limits()
644 __cpufreq_driver_target(policy, policy->max, in cpufreq_policy_apply_limits()
646 else if (policy->min > policy->cur) in cpufreq_policy_apply_limits()
647 __cpufreq_driver_target(policy, policy->min, in cpufreq_policy_apply_limits()
861 target_freq = clamp_val(target_freq, policy->min, policy->max); in cpufreq_table_find_index_l()
929 target_freq = clamp_val(target_freq, policy->min, policy->max); in cpufreq_table_find_index_h()
1014 target_freq = clamp_val(target_freq, policy->min, policy->max); in cpufreq_table_find_index_c()
[all …]
/openbmc/ibm-logging/test/
H A Dtest_policy.cpp231 policy::Table policy{jsonFile}; in TEST_F() local
275 policy::Table policy{jsonFile}; in TEST_F() local
283 auto values = policy::find(policy, testProperties); in TEST_F()
295 auto values = policy::find(policy, testProperties); in TEST_F()
308 auto values = policy::find(policy, testProperties); in TEST_F()
321 auto values = policy::find(policy, testProperties); in TEST_F()
333 auto values = policy::find(policy, testProperties); in TEST_F()
345 auto values = policy::find(policy, testProperties); in TEST_F()
357 auto values = policy::find(policy, testProperties); in TEST_F()
366 auto values = policy::find(policy, testProperties); in TEST_F()
[all …]
/openbmc/linux/Documentation/translations/zh_CN/cpu-freq/
H A Dcpu-drivers.rst58 .init - 一个指向per-policy初始化函数的指针。
81 .suspend - 一个指向per-policy暂停函数的指针,该函数在关中断且在该策略的调节器停止
87 .ready - 一个指向per-policy准备函数的指针,该函数在策略完全初始化之后被调用。
103 *policy`` 作为参数。现在该怎么做呢?
124 |policy->policy and, if necessary, | cpufreq_driver.verify和下面函数 |
129 |policy->cpus | 该policy通过DVFS框架影响的全部CPU |
148 您需要确保至少有一个有效频率(或工作范围)在 policy->min 和 policy->max 范围内。如果有必
149 要,先增大policy->max,只有在没有解决方案的情况下,才减小policy->min。
180 - policy->min <= new_freq <= policy->max (这必须是有效的!!!)
201 率切换的下限设置为policy->min,上限设置为policy->max,如果支持的话,当policy->policy
[all …]
/openbmc/linux/Documentation/translations/zh_TW/cpu-freq/
H A Dcpu-drivers.rst55 .init - 一個指向per-policy初始化函數的指針。
100 *policy`` 作爲參數。現在該怎麼做呢?
107 |policy->cpuinfo.min_freq 和 | |
120 |policy->min, | |
121 |policy->max, | |
122 |policy->policy and, if necessary, | |
148 您需要確保至少有一個有效頻率(或工作範圍)在 policy->min 和 policy->max 範圍內。如果有必
149 要,先增加policy->max,只有在沒有辦法的情況下,才減少policy->min。
179 - policy->min <= new_freq <= policy->max (這必須是有效的!!!)
200 率切換的下限設置爲policy->min,上限設置爲policy->max,如果支持的話,當policy->policy
[all …]
/openbmc/qemu/tests/unit/
H A Dptimer-test.c68 const uint8_t *policy = arg; in check_set_count() local
83 const uint8_t *policy = arg; in check_set_limit() local
106 const uint8_t *policy = arg; in check_oneshot() local
224 const uint8_t *policy = arg; in check_periodic() local
410 const uint8_t *policy = arg; in check_on_the_fly_mode_change() local
462 const uint8_t *policy = arg; in check_on_the_fly_period_change() local
498 const uint8_t *policy = arg; in check_on_the_fly_freq_change() local
534 const uint8_t *policy = arg; in check_run_with_period_0() local
553 const uint8_t *policy = arg; in check_run_with_delta_0() local
666 const uint8_t *policy = arg; in check_periodic_with_load_0() local
[all …]
/openbmc/linux/drivers/hwtracing/stm/
H A Dpolicy.c235 policy = parent_node->policy; in stp_policy_node_make()
238 if (!policy->stm) in stp_policy_node_make()
256 policy_node->policy = policy; in stp_policy_node_make()
295 (policy && policy->stm) ? in stp_policy_device_show()
311 (policy && policy->stm) ? in stp_policy_protocol_show()
340 stm->policy = NULL; in stp_policy_unbind()
341 policy->stm = NULL; in stp_policy_unbind()
364 kfree(policy); in stp_policy_release()
435 if (stm->policy) { in stp_policy_make()
440 stm->policy = kzalloc(sizeof(*stm->policy), GFP_KERNEL); in stp_policy_make()
[all …]
/openbmc/linux/drivers/thermal/
H A Dcpufreq_cooling.c75 struct cpufreq_policy *policy; member
225 struct cpufreq_policy *policy = cpufreq_cdev->policy; in cpufreq_get_requested_power() local
302 struct cpufreq_policy *policy = cpufreq_cdev->policy; in cpufreq_power2state() local
316 struct cpufreq_policy *policy; in em_is_sane() local
322 policy = cpufreq_cdev->policy; in em_is_sane()
375 struct cpufreq_policy *policy; in get_state_freq() local
387 policy = cpufreq_cdev->policy; in get_state_freq()
493 struct cpufreq_policy *policy, in __cpufreq_cooling_register() argument
504 if (IS_ERR_OR_NULL(policy)) { in __cpufreq_cooling_register()
526 cpufreq_cdev->policy = policy; in __cpufreq_cooling_register()
[all …]
/openbmc/linux/arch/powerpc/platforms/cell/
H A Dcpufreq_spudemand.c25 struct cpufreq_policy *policy; member
36 cpu = info->policy->cpu; in calc_freq()
43 return info->policy->max * info->busy_spus / FIXED_1; in calc_freq()
55 BUG_ON(info->policy == NULL); in spu_gov_work()
78 unsigned int cpu = policy->cpu; in spu_gov_start()
88 if (!policy->cur) { in spu_gov_start()
94 for_each_cpu(i, policy->cpus) { in spu_gov_start()
96 affected_info->policy = policy; in spu_gov_start()
109 unsigned int cpu = policy->cpu; in spu_gov_stop()
117 for_each_cpu (i, policy->cpus) { in spu_gov_stop()
[all …]
/openbmc/linux/kernel/sched/
H A Dcpufreq_schedutil.c17 struct cpufreq_policy *policy; member
142 struct cpufreq_policy *policy = sg_policy->policy; in get_next_freq() local
144 policy->cpuinfo.max_freq : policy->cur; in get_next_freq()
419 struct cpufreq_policy *policy = sg_policy->policy; in sugov_next_freq_shared() local
425 for_each_cpu(j, policy->cpus) { in sugov_next_freq_shared()
569 sg_policy->policy = policy; in sugov_policy_alloc()
596 struct cpufreq_policy *policy = sg_policy->policy; in sugov_kthread_create() local
667 if (policy->governor_data) in sugov_init()
719 policy->governor_data = NULL; in sugov_init()
745 policy->governor_data = NULL; in sugov_exit()
[all …]

12345678910>>...41