Home
last modified time | relevance | path

Searched refs:policy (Results 51 - 75 of 1961) sorted by relevance

12345678910>>...79

/base/accesscontrol/sandbox_manager/services/sandbox_manager/test/unittest/
H A Dsandbox_manager_service_test.cpp121 std::vector<PolicyInfo> policy; in HWTEST_F() local
123 EXPECT_EQ(INVALID_PARAMTER, sandboxManagerService_->PersistPolicy(policy, result0)); in HWTEST_F()
127 policy.resize(POLICY_VECTOR_SIZE_LIMIT + 1); in HWTEST_F()
129 EXPECT_EQ(INVALID_PARAMTER, sandboxManagerService_->PersistPolicy(policy, result1)); in HWTEST_F()
142 std::vector<PolicyInfo> policy; in HWTEST_F() local
145 EXPECT_EQ(INVALID_PARAMTER, sandboxManagerService_->SetPolicy(selfTokenId_, policy, policyFlag, result0)); in HWTEST_F()
149 policy.resize(POLICY_VECTOR_SIZE_LIMIT + 1); in HWTEST_F()
152 EXPECT_EQ(INVALID_PARAMTER, sandboxManagerService_->SetPolicy(selfTokenId_, policy, policyFlag, result)); in HWTEST_F()
156 policy.resize(1); in HWTEST_F()
157 EXPECT_EQ(SANDBOX_MANAGER_OK, sandboxManagerService_->SetPolicy(selfTokenId_, policy, policyFla in HWTEST_F()
171 std::vector<PolicyInfo> policy; HWTEST_F() local
193 std::vector<PolicyInfo> policy; HWTEST_F() local
214 std::vector<PolicyInfo> policy; HWTEST_F() local
239 std::vector<PolicyInfo> policy; HWTEST_F() local
260 std::vector<PolicyInfo> policy; HWTEST_F() local
275 std::vector<PolicyInfo> policy; HWTEST_F() local
307 std::vector<PolicyInfo> policy; HWTEST_F() local
500 std::vector<PolicyInfo> policy; HWTEST_F() local
527 std::vector<PolicyInfo> policy; HWTEST_F() local
556 std::vector<PolicyInfo> policy; HWTEST_F() local
595 std::vector<PolicyInfo> policy; HWTEST_F() local
634 std::vector<PolicyInfo> policy; HWTEST_F() local
660 std::vector<PolicyInfo> policy; HWTEST_F() local
685 std::vector<PolicyInfo> policy; HWTEST_F() local
716 std::vector<PolicyInfo> policy; HWTEST_F() local
743 std::vector<PolicyInfo> policy; HWTEST_F() local
[all...]
H A Dpolicy_info_manager_test.cpp116 std::vector<PolicyInfo> policy; in HWTEST_F() local
117 policy.emplace_back(info); in HWTEST_F()
121 policy[0] = info; in HWTEST_F()
123 EXPECT_EQ(SANDBOX_MANAGER_OK, PolicyInfoManager::GetInstance().SetPolicy(selfTokenId_, policy, 1, setResult)); in HWTEST_F()
128 EXPECT_EQ(SANDBOX_MANAGER_OK, PolicyInfoManager::GetInstance().AddPolicy(selfTokenId_, policy, result11)); in HWTEST_F()
132 // add duplicate policy in HWTEST_F()
135 policy[0] = info; in HWTEST_F()
137 EXPECT_EQ(SANDBOX_MANAGER_OK, PolicyInfoManager::GetInstance().AddPolicy(selfTokenId_, policy, result12)); in HWTEST_F()
141 // add duplicate policy with diff mode in HWTEST_F()
144 policy[ in HWTEST_F()
168 std::vector<PolicyInfo> policy; HWTEST_F() local
219 std::vector<PolicyInfo> policy; HWTEST_F() local
[all...]
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/test/unittest/
H A Dprocess_group_test.cpp25 static bool CovertSchedPolicyStringToEnumType(char* policyStr, SchedPolicy* policy) in CovertSchedPolicyStringToEnumType() argument
34 *policy = policyItem; in CovertSchedPolicyStringToEnumType()
46 SchedPolicy policy; in SetThreadSchedPolicyTest() local
47 if (!CovertSchedPolicyStringToEnumType(policyStr, &policy)) { in SetThreadSchedPolicyTest()
50 if (SetThreadSchedPolicy(tid, policy) == 0) { in SetThreadSchedPolicyTest()
51 std::cout << "Set thread tid = << "<< tid << " SolicyPolicy = "<< policy << "ok." << std::endl; in SetThreadSchedPolicyTest()
61 SchedPolicy policy; in SetThreadGroupSchedPolicyTest() local
62 if (!CovertSchedPolicyStringToEnumType(policyStr, &policy)) { in SetThreadGroupSchedPolicyTest()
65 if (SetThreadGroupSchedPolicy(pid, policy) == 0) { in SetThreadGroupSchedPolicyTest()
66 std::cout << "Set thread group pid = << "<< pid << " SolicyPolicy = "<< policy << "o in SetThreadGroupSchedPolicyTest()
75 SchedPolicy policy; GetThreadSchedPolicyTest() local
77 std::cout << "Get the SolicyPolicy of thread tid = " << tid << " is " << policy << "\\n"; GetThreadSchedPolicyTest() local
89 SchedPolicy policy = static_cast<SchedPolicy>(policyNum); GetSchedPolicyShortenedNameTest() local
102 SchedPolicy policy = static_cast<SchedPolicy>(policyNum); GetSchedPolicyFullNameTest() local
[all...]
/kernel/linux/linux-5.10/drivers/cpufreq/
H A Damd_freq_sensitivity.c39 static unsigned int amd_powersave_bias_target(struct cpufreq_policy *policy, in amd_powersave_bias_target() argument
46 struct cpu_data_t *data = &per_cpu(cpu_data, policy->cpu); in amd_powersave_bias_target()
47 struct policy_dbs_info *policy_dbs = policy->governor_data; in amd_powersave_bias_target()
51 if (!policy->freq_table) in amd_powersave_bias_target()
54 rdmsr_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_ACTUAL, in amd_powersave_bias_target()
56 rdmsr_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_REFERENCE, in amd_powersave_bias_target()
63 freq_next = policy->cur; in amd_powersave_bias_target()
72 freq_next = policy->cur; in amd_powersave_bias_target()
83 if (data->freq_prev == policy->cur) in amd_powersave_bias_target()
84 freq_next = policy in amd_powersave_bias_target()
[all...]
H A Dppc_cbe_cpufreq.c55 static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy) in cbe_cpufreq_cpu_init() argument
63 cpu = of_get_cpu_node(policy->cpu, NULL); in cbe_cpufreq_cpu_init()
68 pr_debug("init cpufreq on CPU %d\n", policy->cpu); in cbe_cpufreq_cpu_init()
73 if (!cbe_get_cpu_pmd_regs(policy->cpu) || in cbe_cpufreq_cpu_init()
74 !cbe_get_cpu_mic_tm_regs(policy->cpu)) { in cbe_cpufreq_cpu_init()
101 policy->cpuinfo.transition_latency = 25000; in cbe_cpufreq_cpu_init()
103 cur_pmode = cbe_cpufreq_get_pmode(policy->cpu); in cbe_cpufreq_cpu_init()
106 policy->cur = cbe_freqs[cur_pmode].frequency; in cbe_cpufreq_cpu_init()
109 cpumask_copy(policy->cpus, cpu_sibling_mask(policy in cbe_cpufreq_cpu_init()
117 cbe_cpufreq_cpu_exit(struct cpufreq_policy *policy) cbe_cpufreq_cpu_exit() argument
123 cbe_cpufreq_target(struct cpufreq_policy *policy, unsigned int cbe_pmode_new) cbe_cpufreq_target() argument
[all...]
H A Dscpi-cpufreq.c40 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); in scpi_cpufreq_get_rate() local
41 struct scpi_data *priv = policy->driver_data; in scpi_cpufreq_get_rate()
48 scpi_cpufreq_set_target(struct cpufreq_policy *policy, unsigned int index) in scpi_cpufreq_set_target() argument
50 u64 rate = policy->freq_table[index].frequency * 1000; in scpi_cpufreq_set_target()
51 struct scpi_data *priv = policy->driver_data; in scpi_cpufreq_set_target()
91 static int scpi_cpufreq_init(struct cpufreq_policy *policy) in scpi_cpufreq_init() argument
99 cpu_dev = get_cpu_device(policy->cpu); in scpi_cpufreq_init()
101 pr_err("failed to get cpu%d device\n", policy->cpu); in scpi_cpufreq_init()
111 ret = scpi_get_sharing_cpus(cpu_dev, policy->cpus); in scpi_cpufreq_init()
117 ret = dev_pm_opp_set_sharing_cpus(cpu_dev, policy in scpi_cpufreq_init()
180 scpi_cpufreq_exit(struct cpufreq_policy *policy) scpi_cpufreq_exit() argument
[all...]
H A Dcpufreq_ondemand.c61 static unsigned int generic_powersave_bias_target(struct cpufreq_policy *policy, in generic_powersave_bias_target() argument
68 struct policy_dbs_info *policy_dbs = policy->governor_data; in generic_powersave_bias_target()
72 struct cpufreq_frequency_table *freq_table = policy->freq_table; in generic_powersave_bias_target()
80 index = cpufreq_frequency_table_target(policy, freq_next, relation); in generic_powersave_bias_target()
86 index = cpufreq_table_find_index_h(policy, freq_avg); in generic_powersave_bias_target()
88 index = cpufreq_table_find_index_l(policy, freq_avg); in generic_powersave_bias_target()
106 static void ondemand_powersave_bias_init(struct cpufreq_policy *policy) in ondemand_powersave_bias_init() argument
108 struct od_policy_dbs_info *dbs_info = to_dbs_info(policy->governor_data); in ondemand_powersave_bias_init()
113 static void dbs_freq_increase(struct cpufreq_policy *policy, unsigned int freq) in dbs_freq_increase() argument
115 struct policy_dbs_info *policy_dbs = policy in dbs_freq_increase()
134 od_update(struct cpufreq_policy *policy) od_update() argument
170 od_dbs_update(struct cpufreq_policy *policy) od_dbs_update() argument
388 od_start(struct cpufreq_policy *policy) od_start() argument
423 struct cpufreq_policy *policy; od_set_powersave_bias() local
[all...]
H A Dscmi-cpufreq.c32 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); in scmi_cpufreq_get_rate() local
34 struct scmi_data *priv = policy->driver_data; in scmi_cpufreq_get_rate()
50 scmi_cpufreq_set_target(struct cpufreq_policy *policy, unsigned int index) in scmi_cpufreq_set_target() argument
52 struct scmi_data *priv = policy->driver_data; in scmi_cpufreq_set_target()
54 u64 freq = policy->freq_table[index].frequency; in scmi_cpufreq_set_target()
59 static unsigned int scmi_cpufreq_fast_switch(struct cpufreq_policy *policy, in scmi_cpufreq_fast_switch() argument
62 struct scmi_data *priv = policy->driver_data; in scmi_cpufreq_fast_switch()
121 static int scmi_cpufreq_init(struct cpufreq_policy *policy) in scmi_cpufreq_init() argument
130 cpu_dev = get_cpu_device(policy->cpu); in scmi_cpufreq_init()
132 pr_err("failed to get cpu%d device\n", policy in scmi_cpufreq_init()
204 scmi_cpufreq_exit(struct cpufreq_policy *policy) scmi_cpufreq_exit() argument
[all...]
H A Dcpufreq_conservative.c38 struct cpufreq_policy *policy) in get_freq_step()
40 unsigned int freq_step = (cs_tuners->freq_step * policy->max) / 100; in get_freq_step()
58 static unsigned int cs_dbs_update(struct cpufreq_policy *policy) in cs_dbs_update() argument
60 struct policy_dbs_info *policy_dbs = policy->governor_data; in cs_dbs_update()
65 unsigned int load = dbs_update(policy); in cs_dbs_update()
80 if (requested_freq > policy->max || requested_freq < policy->min) { in cs_dbs_update()
81 requested_freq = policy->cur; in cs_dbs_update()
85 freq_step = get_freq_step(cs_tuners, policy); in cs_dbs_update()
94 if (requested_freq > policy in cs_dbs_update()
37 get_freq_step(struct cs_dbs_tuners *cs_tuners, struct cpufreq_policy *policy) get_freq_step() argument
306 cs_start(struct cpufreq_policy *policy) cs_start() argument
[all...]
/kernel/linux/linux-5.10/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()
54 /* after cancel_delayed_work_sync we unset info->policy */ in spu_gov_work()
55 BUG_ON(info->policy == NULL); in spu_gov_work()
58 __cpufreq_driver_target(info->policy, target_freq, CPUFREQ_RELATION_H); in spu_gov_work()
61 schedule_delayed_work_on(info->policy->cpu, &info->work, delay); in spu_gov_work()
68 schedule_delayed_work_on(info->policy->cpu, &info->work, delay); in spu_gov_init_work()
76 static int spu_gov_start(struct cpufreq_policy *policy) in spu_gov_start() argument
78 unsigned int cpu = policy in spu_gov_start()
107 spu_gov_stop(struct cpufreq_policy *policy) spu_gov_stop() argument
[all...]
/kernel/linux/linux-6.6/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()
54 /* after cancel_delayed_work_sync we unset info->policy */ in spu_gov_work()
55 BUG_ON(info->policy == NULL); in spu_gov_work()
58 __cpufreq_driver_target(info->policy, target_freq, CPUFREQ_RELATION_H); in spu_gov_work()
61 schedule_delayed_work_on(info->policy->cpu, &info->work, delay); in spu_gov_work()
68 schedule_delayed_work_on(info->policy->cpu, &info->work, delay); in spu_gov_init_work()
76 static int spu_gov_start(struct cpufreq_policy *policy) in spu_gov_start() argument
78 unsigned int cpu = policy in spu_gov_start()
107 spu_gov_stop(struct cpufreq_policy *policy) spu_gov_stop() argument
[all...]
/kernel/linux/linux-6.6/drivers/cpufreq/
H A Dppc_cbe_cpufreq.c54 static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy) in cbe_cpufreq_cpu_init() argument
62 cpu = of_get_cpu_node(policy->cpu, NULL); in cbe_cpufreq_cpu_init()
67 pr_debug("init cpufreq on CPU %d\n", policy->cpu); 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()
102 cur_pmode = cbe_cpufreq_get_pmode(policy->cpu); 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 in cbe_cpufreq_cpu_init()
116 cbe_cpufreq_cpu_exit(struct cpufreq_policy *policy) cbe_cpufreq_cpu_exit() argument
122 cbe_cpufreq_target(struct cpufreq_policy *policy, unsigned int cbe_pmode_new) cbe_cpufreq_target() argument
[all...]
H A Damd_freq_sensitivity.c39 static unsigned int amd_powersave_bias_target(struct cpufreq_policy *policy, in amd_powersave_bias_target() argument
46 struct cpu_data_t *data = &per_cpu(cpu_data, policy->cpu); in amd_powersave_bias_target()
47 struct policy_dbs_info *policy_dbs = policy->governor_data; in amd_powersave_bias_target()
51 if (!policy->freq_table) in amd_powersave_bias_target()
54 rdmsr_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_ACTUAL, in amd_powersave_bias_target()
56 rdmsr_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_REFERENCE, in amd_powersave_bias_target()
63 freq_next = policy->cur; in amd_powersave_bias_target()
72 freq_next = policy->cur; in amd_powersave_bias_target()
83 if (data->freq_prev == policy->cur) in amd_powersave_bias_target()
84 freq_next = policy in amd_powersave_bias_target()
[all...]
H A Dapple-soc-cpufreq.c106 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); in apple_soc_cpufreq_get_rate() local
107 struct apple_cpu_priv *priv = policy->driver_data; in apple_soc_cpufreq_get_rate()
125 cpufreq_for_each_valid_entry(p, policy->freq_table) in apple_soc_cpufreq_get_rate()
134 static int apple_soc_cpufreq_set_target(struct cpufreq_policy *policy, in apple_soc_cpufreq_set_target() argument
137 struct apple_cpu_priv *priv = policy->driver_data; in apple_soc_cpufreq_set_target()
138 unsigned int pstate = policy->freq_table[index].driver_data; in apple_soc_cpufreq_set_target()
161 static unsigned int apple_soc_cpufreq_fast_switch(struct cpufreq_policy *policy, in apple_soc_cpufreq_fast_switch() argument
164 if (apple_soc_cpufreq_set_target(policy, policy->cached_resolved_idx) < 0) in apple_soc_cpufreq_fast_switch()
167 return policy in apple_soc_cpufreq_fast_switch()
170 apple_soc_cpufreq_find_cluster(struct cpufreq_policy *policy, void __iomem **reg_base, const struct apple_soc_cpufreq_info **info) apple_soc_cpufreq_find_cluster() argument
204 apple_soc_cpufreq_init(struct cpufreq_policy *policy) apple_soc_cpufreq_init() argument
308 apple_soc_cpufreq_exit(struct cpufreq_policy *policy) apple_soc_cpufreq_exit() argument
[all...]
H A Dscpi-cpufreq.c32 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); in scpi_cpufreq_get_rate() local
33 struct scpi_data *priv = policy->driver_data; in scpi_cpufreq_get_rate()
40 scpi_cpufreq_set_target(struct cpufreq_policy *policy, unsigned int index) in scpi_cpufreq_set_target() argument
42 u64 rate = policy->freq_table[index].frequency * 1000; in scpi_cpufreq_set_target()
43 struct scpi_data *priv = policy->driver_data; in scpi_cpufreq_set_target()
83 static int scpi_cpufreq_init(struct cpufreq_policy *policy) in scpi_cpufreq_init() argument
91 cpu_dev = get_cpu_device(policy->cpu); in scpi_cpufreq_init()
93 pr_err("failed to get cpu%d device\n", policy->cpu); in scpi_cpufreq_init()
103 ret = scpi_get_sharing_cpus(cpu_dev, policy->cpus); in scpi_cpufreq_init()
109 ret = dev_pm_opp_set_sharing_cpus(cpu_dev, policy in scpi_cpufreq_init()
170 scpi_cpufreq_exit(struct cpufreq_policy *policy) scpi_cpufreq_exit() argument
[all...]
H A Dcpufreq_ondemand.c61 static unsigned int generic_powersave_bias_target(struct cpufreq_policy *policy, in generic_powersave_bias_target() argument
68 struct policy_dbs_info *policy_dbs = policy->governor_data; in generic_powersave_bias_target()
72 struct cpufreq_frequency_table *freq_table = policy->freq_table; in generic_powersave_bias_target()
80 index = cpufreq_frequency_table_target(policy, freq_next, relation); in generic_powersave_bias_target()
86 index = cpufreq_table_find_index_h(policy, freq_avg, in generic_powersave_bias_target()
89 index = cpufreq_table_find_index_l(policy, freq_avg, in generic_powersave_bias_target()
108 static void ondemand_powersave_bias_init(struct cpufreq_policy *policy) in ondemand_powersave_bias_init() argument
110 struct od_policy_dbs_info *dbs_info = to_dbs_info(policy->governor_data); in ondemand_powersave_bias_init()
115 static void dbs_freq_increase(struct cpufreq_policy *policy, unsigned int freq) in dbs_freq_increase() argument
117 struct policy_dbs_info *policy_dbs = policy in dbs_freq_increase()
136 od_update(struct cpufreq_policy *policy) od_update() argument
172 od_dbs_update(struct cpufreq_policy *policy) od_dbs_update() argument
391 od_start(struct cpufreq_policy *policy) od_start() argument
429 struct cpufreq_policy *policy; od_set_powersave_bias() local
[all...]
H A Dcpufreq_conservative.c38 struct cpufreq_policy *policy) in get_freq_step()
40 unsigned int freq_step = (cs_tuners->freq_step * policy->max) / 100; in get_freq_step()
58 static unsigned int cs_dbs_update(struct cpufreq_policy *policy) in cs_dbs_update() argument
60 struct policy_dbs_info *policy_dbs = policy->governor_data; in cs_dbs_update()
65 unsigned int load = dbs_update(policy); in cs_dbs_update()
80 if (requested_freq > policy->max || requested_freq < policy->min) { in cs_dbs_update()
81 requested_freq = policy->cur; in cs_dbs_update()
85 freq_step = get_freq_step(cs_tuners, policy); in cs_dbs_update()
94 if (requested_freq > policy in cs_dbs_update()
37 get_freq_step(struct cs_dbs_tuners *cs_tuners, struct cpufreq_policy *policy) get_freq_step() argument
309 cs_start(struct cpufreq_policy *policy) cs_start() argument
[all...]
/kernel/linux/linux-5.10/kernel/sched/
H A Dcpufreq_schedutil.c25 struct cpufreq_policy *policy; member
93 if (!cpufreq_this_cpu_can_update(sg_policy->policy)) in sugov_should_update_freq()
127 cpufreq_driver_fast_switch(sg_policy->policy, next_freq); in sugov_fast_switch()
143 * get_next_freq - Compute a new frequency for a given cpufreq policy.
144 * @sg_policy: schedutil policy object to compute the new frequency for.
161 * next_freq (as calculated above) is returned, subject to policy min/max and
167 struct cpufreq_policy *policy = sg_policy->policy; in get_next_freq() local
169 policy->cpuinfo.max_freq : policy in get_next_freq()
512 struct cpufreq_policy *policy = sg_policy->policy; sugov_next_freq_shared() local
677 sugov_policy_alloc(struct cpufreq_policy *policy) global() argument
712 struct cpufreq_policy *policy = sg_policy->policy; global() local
776 sugov_init(struct cpufreq_policy *policy) global() argument
852 sugov_exit(struct cpufreq_policy *policy) global() argument
872 sugov_start(struct cpufreq_policy *policy) global() argument
905 sugov_stop(struct cpufreq_policy *policy) global() argument
921 sugov_limits(struct cpufreq_policy *policy) global() argument
972 sched_cpufreq_governor_change(struct cpufreq_policy *policy, struct cpufreq_governor *old_gov) global() argument
[all...]
/kernel/linux/linux-5.10/drivers/thermal/
H A Dcpufreq_cooling.c63 * @policy: cpufreq policy.
77 struct cpufreq_policy *policy; member
211 struct cpufreq_policy *policy = cpufreq_cdev->policy; in cpufreq_get_requested_power() local
214 freq = cpufreq_quick_get(policy->cpu); in cpufreq_get_requested_power()
217 u32 ncpus = cpumask_weight(policy->related_cpus); in cpufreq_get_requested_power()
222 for_each_cpu(cpu, policy->related_cpus) { in cpufreq_get_requested_power()
242 trace_thermal_power_cpu_get_power(policy->related_cpus, freq, in cpufreq_get_requested_power()
275 num_cpus = cpumask_weight(cpufreq_cdev->policy in cpufreq_state2power()
309 struct cpufreq_policy *policy = cpufreq_cdev->policy; cpufreq_power2state() local
323 struct cpufreq_policy *policy; em_is_sane() local
352 struct cpufreq_policy *policy; get_state_freq() local
481 __cpufreq_cooling_register(struct device_node *np, struct cpufreq_policy *policy, struct em_perf_domain *em) __cpufreq_cooling_register() argument
600 cpufreq_cooling_register(struct cpufreq_policy *policy) cpufreq_cooling_register() argument
626 of_cpufreq_cooling_register(struct cpufreq_policy *policy) of_cpufreq_cooling_register() argument
[all...]
/kernel/linux/linux-6.6/drivers/thermal/
H A Dcpufreq_cooling.c62 * @policy: cpufreq policy.
75 struct cpufreq_policy *policy; member
225 struct cpufreq_policy *policy = cpufreq_cdev->policy; in cpufreq_get_requested_power() local
227 freq = cpufreq_quick_get(policy->cpu); in cpufreq_get_requested_power()
229 for_each_cpu(cpu, policy->related_cpus) { in cpufreq_get_requested_power()
244 trace_thermal_power_cpu_get_power_simple(policy->cpu, *power); in cpufreq_get_requested_power()
272 num_cpus = cpumask_weight(cpufreq_cdev->policy->cpus); in cpufreq_state2power()
302 struct cpufreq_policy *policy in cpufreq_power2state() local
316 struct cpufreq_policy *policy; em_is_sane() local
375 struct cpufreq_policy *policy; get_state_freq() local
492 __cpufreq_cooling_register(struct device_node *np, struct cpufreq_policy *policy, struct em_perf_domain *em) __cpufreq_cooling_register() argument
602 cpufreq_cooling_register(struct cpufreq_policy *policy) cpufreq_cooling_register() argument
625 of_cpufreq_cooling_register(struct cpufreq_policy *policy) of_cpufreq_cooling_register() argument
[all...]
/third_party/ltp/testcases/kernel/syscalls/mbind/
H A Dmbind01.c29 #define POLICY_DESC(x) .policy = x, .desc = #x
30 #define POLICY_DESC_TEXT(x, y) .policy = x, .desc = #x" ("y")"
40 int policy; member
139 static void check_policy_pref_or_local(int policy) in check_policy_pref_or_local() argument
141 if (policy != MPOL_PREFERRED && policy != MPOL_LOCAL) { in check_policy_pref_or_local()
142 tst_res(TFAIL, "Wrong policy: %s(%d), " in check_policy_pref_or_local()
144 tst_mempolicy_mode_name(policy), policy); in check_policy_pref_or_local()
152 TEST(mbind(p, MEM_LENGTH, tc->policy, nodemas in test_default()
194 int policy, fail = 0; do_test() local
[all...]
/base/accesscontrol/sandbox_manager/interfaces/innerkits/sandbox_manager/test/unittest/src/
H A Dsandbox_manager_kit_test.cpp156 std::vector<PolicyInfo> policy; in HWTEST_F() local
163 policy.emplace_back(infoParent); in HWTEST_F()
164 ASSERT_EQ(SANDBOX_MANAGER_OK, SandboxManagerKit::SetPolicy(g_mockToken, policy, policyFlag, policyResult)); in HWTEST_F()
169 ASSERT_EQ(SANDBOX_MANAGER_OK, SandboxManagerKit::CheckPolicy(g_mockToken, policy, result)); in HWTEST_F()
173 ASSERT_EQ(SANDBOX_MANAGER_OK, SandboxManagerKit::PersistPolicy(policy, policyResult)); in HWTEST_F()
178 ASSERT_EQ(SANDBOX_MANAGER_OK, SandboxManagerKit::CheckPersistPolicy(g_mockToken, policy, checkResult1)); in HWTEST_F()
182 ASSERT_EQ(SANDBOX_MANAGER_OK, SandboxManagerKit::UnPersistPolicy(policy, unPersistResult)); in HWTEST_F()
185 ASSERT_EQ(SANDBOX_MANAGER_OK, SandboxManagerKit::CheckPersistPolicy(g_mockToken, policy, checkResult2)); in HWTEST_F()
205 std::vector<PolicyInfo> policy; in HWTEST_F() local
206 policy in HWTEST_F()
243 std::vector<PolicyInfo> policy; HWTEST_F() local
368 std::vector<PolicyInfo> policy; HWTEST_F() local
510 std::vector<PolicyInfo> policy; HWTEST_F() local
557 std::vector<PolicyInfo> policy; HWTEST_F() local
604 std::vector<PolicyInfo> policy; HWTEST_F() local
652 std::vector<PolicyInfo> policy; HWTEST_F() local
701 std::vector<PolicyInfo> policy; HWTEST_F() local
758 std::vector<PolicyInfo> policy; HWTEST_F() local
779 std::vector<PolicyInfo> policy; HWTEST_F() local
1128 std::vector<PolicyInfo> policy; HWTEST_F() local
1214 std::vector<PolicyInfo> policy; HWTEST_F() local
1241 std::vector<PolicyInfo> policy; HWTEST_F() local
1324 std::vector<PolicyInfo> policy; HWTEST_F() local
1356 std::vector<PolicyInfo> policy; HWTEST_F() local
1382 std::vector<PolicyInfo> policy; HWTEST_F() local
1428 std::vector<PolicyInfo> policy; HWTEST_F() local
1458 std::vector<PolicyInfo> policy; HWTEST_F() local
1489 std::vector<PolicyInfo> policy; HWTEST_F() local
1541 std::vector<PolicyInfo> policy; HWTEST_F() local
1603 std::vector<PolicyInfo> policy; HWTEST_F() local
1676 std::vector<PolicyInfo> policy; HWTEST_F() local
[all...]
/third_party/python/Lib/test/test_email/
H A D__init__.py26 # Currently the default policy is compat32. By setting that as the default
29 policy = compat32 variable in TestEmailBase
42 return email.message_from_file(fp, policy=self.policy)
44 def _str_msg(self, string, message=None, policy=None):
45 if policy is None:
46 policy = self.policy
49 return email.message_from_string(string, message, policy=policy)
[all...]
/base/accesscontrol/sandbox_manager/interfaces/innerkits/sandbox_manager/include/
H A Dsandbox_manager_kit.h31 * @brief Clear the persistence policy
38 * @param policy vector of PolicyInfo, see policy_info.h
39 * @param result insert result of each policy, result is SandboxRetType in policy_info.h
42 static int32_t PersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result);
45 * @param policy vector of PolicyInfo, see policy_info.h
46 * @param result insert result of each policy, result is SandboxRetType in policy_info.h
49 static int32_t UnPersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result);
53 * @param policy vector of PolicyInfo, see policy_info.h
54 * @param result insert result of each policy, result is SandboxRetType in policy_info.h
58 uint32_t tokenId, const std::vector<PolicyInfo> &policy, st
[all...]
/third_party/ltp/testcases/realtime/stress/pi-tests/
H A Dtestpi-3.c80 int policy;
101 int rc, i, j, policy, tid = gettid(); in func_nonrt() local
117 pthread_getschedparam(pthr->pthread, &policy, &schedp); in func_nonrt()
124 pthr->priority, policy, schedp.sched_priority); in func_nonrt()
129 policy = sched_getscheduler(tid); in func_nonrt()
132 policy, schedp.sched_priority); in func_nonrt()
150 int rc, i, j, policy, tid = gettid(); in func_rt() local
166 pthread_getschedparam(pthr->pthread, &policy, &schedp); in func_rt()
174 pthr->priority, policy, schedp.sched_priority); in func_rt()
184 policy in func_rt()
206 int rc, i, j, policy, tid = gettid(); func_noise() local
253 int retc, policy, inherit; startThread() local
[all...]

Completed in 12 milliseconds

12345678910>>...79