Home
last modified time | relevance | path

Searched full:policy (Results 1 – 25 of 1033) sorted by relevance

12345678910>>...42

/linux/drivers/cpufreq/
H A Dcpufreq.c83 static unsigned int __cpufreq_get(struct cpufreq_policy *policy);
84 static int cpufreq_init_governor(struct cpufreq_policy *policy);
85 static void cpufreq_exit_governor(struct cpufreq_policy *policy);
86 static void cpufreq_governor_limits(struct cpufreq_policy *policy);
87 static int cpufreq_set_policy(struct cpufreq_policy *policy,
94 * Two notifier lists: the "policy" list is involved in the
95 * validation process for a new CPU frequency policy; the
124 struct kobject *get_governor_parent_kobj(struct cpufreq_policy *policy) in get_governor_parent_kobj() argument
127 return &policy->kobj; in get_governor_parent_kobj()
176 * - policy->cpus with all possible CPUs
[all …]
H A Dcpufreq_userspace.c26 * @policy: pointer to policy struct where freq is being set
31 static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq) in cpufreq_set() argument
34 struct userspace_policy *userspace = policy->governor_data; in cpufreq_set()
36 pr_debug("cpufreq_set for cpu %u, freq %u kHz\n", policy->cpu, freq); in cpufreq_set()
44 ret = __cpufreq_driver_target(policy, freq, CPUFREQ_RELATION_L); in cpufreq_set()
50 static ssize_t show_speed(struct cpufreq_policy *policy, char *buf) in show_speed() argument
52 struct userspace_policy *userspace = policy->governor_data; in show_speed()
57 static int cpufreq_userspace_policy_init(struct cpufreq_policy *policy) in cpufreq_userspace_policy_init() argument
67 policy->governor_data = userspace; in cpufreq_userspace_policy_init()
72 * Any routine that writes to the policy struct will hold the "rwsem" of
[all …]
H A Dfreq_table.c17 static bool policy_has_boost_freq(struct cpufreq_policy *policy) in policy_has_boost_freq() argument
19 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in policy_has_boost_freq()
31 int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy) in cpufreq_frequency_table_cpuinfo() argument
33 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in cpufreq_frequency_table_cpuinfo()
41 if ((!cpufreq_boost_enabled() || !policy->boost_enabled) in cpufreq_frequency_table_cpuinfo()
52 policy->min = policy->cpuinfo.min_freq = min_freq; in cpufreq_frequency_table_cpuinfo()
53 policy->max = max_freq; in cpufreq_frequency_table_cpuinfo()
58 if (policy->cpuinfo.max_freq < max_freq) in cpufreq_frequency_table_cpuinfo()
59 policy->max = policy->cpuinfo.max_freq = max_freq; in cpufreq_frequency_table_cpuinfo()
61 if (policy->min == ~0) in cpufreq_frequency_table_cpuinfo()
[all …]
H A Damd-pstate.c237 static int msr_update_perf(struct cpufreq_policy *policy, u8 min_perf, in msr_update_perf() argument
240 struct amd_cpudata *cpudata = policy->driver_data; in msr_update_perf()
260 policy->boost_enabled, in msr_update_perf()
283 static inline int amd_pstate_update_perf(struct cpufreq_policy *policy, in amd_pstate_update_perf() argument
288 return static_call(amd_pstate_update_perf)(policy, min_perf, des_perf, in amd_pstate_update_perf()
292 static int msr_set_epp(struct cpufreq_policy *policy, u8 epp) in msr_set_epp() argument
294 struct amd_cpudata *cpudata = policy->driver_data; in msr_set_epp()
311 policy->boost_enabled, in msr_set_epp()
332 static inline int amd_pstate_set_epp(struct cpufreq_policy *policy, u8 epp) in amd_pstate_set_epp() argument
334 return static_call(amd_pstate_set_epp)(policy, ep in amd_pstate_set_epp()
337 amd_pstate_set_floor_perf(struct cpufreq_policy * policy,u8 perf) amd_pstate_set_floor_perf() argument
371 amd_pstate_init_floor_perf(struct cpufreq_policy * policy) amd_pstate_init_floor_perf() argument
406 shmem_set_epp(struct cpufreq_policy * policy,u8 epp) shmem_set_epp() argument
447 msr_cppc_enable(struct cpufreq_policy * policy) msr_cppc_enable() argument
452 shmem_cppc_enable(struct cpufreq_policy * policy) shmem_cppc_enable() argument
459 amd_pstate_cppc_enable(struct cpufreq_policy * policy) amd_pstate_cppc_enable() argument
557 shmem_update_perf(struct cpufreq_policy * policy,u8 min_perf,u8 des_perf,u8 max_perf,u8 epp,bool fast_switch) shmem_update_perf() argument
642 amd_pstate_update(struct cpufreq_policy * policy,u8 min_perf,u8 des_perf,u8 max_perf,bool fast_switch,int gov_flags) amd_pstate_update() argument
701 amd_pstate_update_min_max_limit(struct cpufreq_policy * policy) amd_pstate_update_min_max_limit() argument
733 amd_pstate_update_freq(struct cpufreq_policy * policy,unsigned int target_freq,bool fast_switch) amd_pstate_update_freq() argument
772 amd_pstate_target(struct cpufreq_policy * policy,unsigned int target_freq,unsigned int relation) amd_pstate_target() argument
779 amd_pstate_fast_switch(struct cpufreq_policy * policy,unsigned int target_freq) amd_pstate_fast_switch() argument
787 amd_pstate_adjust_perf(struct cpufreq_policy * policy,unsigned long _min_perf,unsigned long target_perf,unsigned long capacity) amd_pstate_adjust_perf() argument
827 amd_pstate_cpu_boost_update(struct cpufreq_policy * policy,bool on) amd_pstate_cpu_boost_update() argument
849 amd_pstate_set_boost(struct cpufreq_policy * policy,int state) amd_pstate_set_boost() argument
923 amd_pstate_update_limits(struct cpufreq_policy * policy) amd_pstate_update_limits() argument
1048 amd_pstate_cpu_init(struct cpufreq_policy * policy) amd_pstate_cpu_init() argument
1142 amd_pstate_cpu_exit(struct cpufreq_policy * policy) amd_pstate_cpu_exit() argument
1157 amd_pstate_get_balanced_epp(struct cpufreq_policy * policy) amd_pstate_get_balanced_epp() argument
1250 amd_pstate_clear_dynamic_epp(struct cpufreq_policy * policy) amd_pstate_clear_dynamic_epp() argument
1265 amd_pstate_set_dynamic_epp(struct cpufreq_policy * policy) amd_pstate_set_dynamic_epp() argument
1327 show_amd_pstate_max_freq(struct cpufreq_policy * policy,char * buf) show_amd_pstate_max_freq() argument
1335 show_amd_pstate_lowest_nonlinear_freq(struct cpufreq_policy * policy,char * buf) show_amd_pstate_lowest_nonlinear_freq() argument
1352 show_amd_pstate_highest_perf(struct cpufreq_policy * policy,char * buf) show_amd_pstate_highest_perf() argument
1362 show_amd_pstate_prefcore_ranking(struct cpufreq_policy * policy,char * buf) show_amd_pstate_prefcore_ranking() argument
1373 show_amd_pstate_hw_prefcore(struct cpufreq_policy * policy,char * buf) show_amd_pstate_hw_prefcore() argument
1385 show_energy_performance_available_preferences(struct cpufreq_policy * policy,char * buf) show_energy_performance_available_preferences() argument
1402 store_energy_performance_preference(struct cpufreq_policy * policy,const char * buf,size_t count) store_energy_performance_preference() argument
1446 show_energy_performance_preference(struct cpufreq_policy * policy,char * buf) show_energy_performance_preference() argument
1477 store_amd_pstate_floor_freq(struct cpufreq_policy * policy,const char * buf,size_t count) store_amd_pstate_floor_freq() argument
1502 show_amd_pstate_floor_freq(struct cpufreq_policy * policy,char * buf) show_amd_pstate_floor_freq() argument
1509 show_amd_pstate_floor_count(struct cpufreq_policy * policy,char * buf) show_amd_pstate_floor_count() argument
1880 amd_pstate_epp_cpu_init(struct cpufreq_policy * policy) amd_pstate_epp_cpu_init() argument
1974 amd_pstate_epp_cpu_exit(struct cpufreq_policy * policy) amd_pstate_epp_cpu_exit() argument
1995 amd_pstate_epp_update_limit(struct cpufreq_policy * policy,bool policy_change) amd_pstate_epp_update_limit() argument
2017 amd_pstate_epp_set_policy(struct cpufreq_policy * policy) amd_pstate_epp_set_policy() argument
2040 amd_pstate_cpu_online(struct cpufreq_policy * policy) amd_pstate_cpu_online() argument
2055 amd_pstate_cpu_offline(struct cpufreq_policy * policy) amd_pstate_cpu_offline() argument
2077 amd_pstate_suspend(struct cpufreq_policy * policy) amd_pstate_suspend() argument
2106 amd_pstate_resume(struct cpufreq_policy * policy) amd_pstate_resume() argument
2124 amd_pstate_epp_resume(struct cpufreq_policy * policy) amd_pstate_epp_resume() argument
[all...]
H A Dlongrun.c29 * longrun_get_policy - get the current LongRun policy
30 * @policy: struct cpufreq_policy where current policy is written into
32 * Reads the current LongRun policy by access to MSR_TMTA_LONGRUN_FLAGS
35 static void longrun_get_policy(struct cpufreq_policy *policy) in longrun_get_policy() argument
42 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()
57 policy->max = longrun_low_freq + msr_hi * in longrun_get_policy()
60 policy->cpu = 0; in longrun_get_policy()
[all …]
H A Dvirtual-cpufreq.c92 static unsigned int virt_cpufreq_set_perf(struct cpufreq_policy *policy, in virt_cpufreq_set_perf() argument
96 base + policy->cpu * PER_CPU_OFFSET + REG_SET_PERF_STATE_OFFSET); in virt_cpufreq_set_perf()
100 static unsigned int virt_cpufreq_fast_switch(struct cpufreq_policy *policy, in virt_cpufreq_fast_switch() argument
103 virt_cpufreq_set_perf(policy, target_freq); in virt_cpufreq_fast_switch()
115 static int virt_cpufreq_target(struct cpufreq_policy *policy, in virt_cpufreq_target() argument
122 freqs.old = policy->cur; in virt_cpufreq_target()
125 cpufreq_freq_transition_begin(policy, &freqs); in virt_cpufreq_target()
126 ret = virt_cpufreq_set_perf(policy, target_freq); in virt_cpufreq_target()
127 cpufreq_freq_transition_end(policy, &freqs, ret != 0); in virt_cpufreq_target()
132 static int virt_cpufreq_get_sharing_cpus(struct cpufreq_policy *policy) in virt_cpufreq_get_sharing_cpus() argument
[all …]
H A Dcpufreq_ondemand.c37 static unsigned int generic_powersave_bias_target(struct cpufreq_policy *policy, in generic_powersave_bias_target() argument
44 struct policy_dbs_info *policy_dbs = policy->governor_data; in generic_powersave_bias_target()
48 struct cpufreq_frequency_table *freq_table = policy->freq_table; in generic_powersave_bias_target()
56 index = cpufreq_frequency_table_target(policy, freq_next, policy->min, in generic_powersave_bias_target()
57 policy->max, relation); in generic_powersave_bias_target()
63 index = cpufreq_table_find_index_h(policy, freq_avg, in generic_powersave_bias_target()
66 index = cpufreq_table_find_index_l(policy, freq_avg, in generic_powersave_bias_target()
85 static void ondemand_powersave_bias_init(struct cpufreq_policy *policy) in ondemand_powersave_bias_init() argument
87 struct od_policy_dbs_info *dbs_info = to_dbs_info(policy->governor_data); in ondemand_powersave_bias_init()
92 static void dbs_freq_increase(struct cpufreq_policy *policy, unsigned int freq) in dbs_freq_increase() argument
[all …]
H A Dcpufreq_governor.c90 * (that may be a single policy or a bunch of them if governor tunables are
102 for_each_cpu(j, policy_dbs->policy->cpus) { in gov_update_cpu_data()
114 unsigned int dbs_update(struct cpufreq_policy *policy) in dbs_update() argument
116 struct policy_dbs_info *policy_dbs = policy->governor_data; in dbs_update()
137 for_each_cpu(j, policy->cpus) { in dbs_update()
236 struct cpufreq_policy *policy; in dbs_work_handler() local
240 policy = policy_dbs->policy; in dbs_work_handler()
241 gov = dbs_governor_of(policy); in dbs_work_handler()
248 gov_update_sample_delay(policy_dbs, gov->gov_dbs_update(policy)); in dbs_work_handler()
277 if (!cpufreq_this_cpu_can_update(policy_dbs->policy)) in dbs_update_util_handler()
[all …]
H A Dqcom-cpufreq-hw.c58 struct cpufreq_policy *policy; member
72 static int qcom_cpufreq_set_bw(struct cpufreq_policy *policy, in qcom_cpufreq_set_bw() argument
80 dev = get_cpu_device(policy->cpu); in qcom_cpufreq_set_bw()
113 static int qcom_cpufreq_hw_target_index(struct cpufreq_policy *policy, in qcom_cpufreq_hw_target_index() argument
116 struct qcom_cpufreq_data *data = policy->driver_data; in qcom_cpufreq_hw_target_index()
118 unsigned long freq = policy->freq_table[index].frequency; in qcom_cpufreq_hw_target_index()
124 for (i = 1; i < cpumask_weight(policy->related_cpus); i++) in qcom_cpufreq_hw_target_index()
128 qcom_cpufreq_set_bw(policy, freq); in qcom_cpufreq_hw_target_index()
146 static unsigned int qcom_cpufreq_get_freq(struct cpufreq_policy *policy) in qcom_cpufreq_get_freq() argument
152 if (!policy) in qcom_cpufreq_get_freq()
[all …]
H A Dmediatek-cpufreq-hw.c100 struct cpufreq_policy *policy; in mtk_cpufreq_get_cpu_power() local
103 policy = cpufreq_cpu_get_raw(cpu_dev->id); in mtk_cpufreq_get_cpu_power()
104 if (!policy) in mtk_cpufreq_get_cpu_power()
107 data = policy->driver_data; in mtk_cpufreq_get_cpu_power()
124 struct cpufreq_policy *policy) in mtk_cpufreq_hw_fdvfs_switch() argument
126 struct mtk_cpufreq_domain *data = policy->driver_data; in mtk_cpufreq_hw_fdvfs_switch()
131 for_each_cpu(cpu, policy->real_cpus) { in mtk_cpufreq_hw_fdvfs_switch()
136 static int mtk_cpufreq_hw_target_index(struct cpufreq_policy *policy, in mtk_cpufreq_hw_target_index() argument
139 struct mtk_cpufreq_domain *data = policy->driver_data; in mtk_cpufreq_hw_target_index()
143 target_freq = policy->freq_table[index].frequency; in mtk_cpufreq_hw_target_index()
[all …]
H A Damd-pstate-ut.c153 struct cpufreq_policy *policy __free(put_cpufreq_policy) = NULL; in amd_pstate_ut_check_perf()
156 policy = cpufreq_cpu_get(cpu); in amd_pstate_ut_check_perf()
157 if (!policy) in amd_pstate_ut_check_perf()
159 cpudata = policy->driver_data; in amd_pstate_ut_check_perf()
225 struct cpufreq_policy *policy __free(put_cpufreq_policy) = NULL; in amd_pstate_ut_check_freq()
228 policy = cpufreq_cpu_get(cpu); in amd_pstate_ut_check_freq()
229 if (!policy) in amd_pstate_ut_check_freq()
231 cpudata = policy->driver_data; in amd_pstate_ut_check_freq()
233 if (!((policy->cpuinfo.max_freq >= cpudata->nominal_freq) && in amd_pstate_ut_check_freq()
235 (cpudata->lowest_nonlinear_freq >= policy->cpuinfo.min_freq) && in amd_pstate_ut_check_freq()
[all …]
H A Dapple-soc-cpufreq.c137 struct cpufreq_policy *policy; in apple_soc_cpufreq_get_rate() local
142 policy = cpufreq_cpu_get_raw(cpu); in apple_soc_cpufreq_get_rate()
143 if (unlikely(!policy)) in apple_soc_cpufreq_get_rate()
146 priv = policy->driver_data; in apple_soc_cpufreq_get_rate()
162 cpufreq_for_each_valid_entry(p, policy->freq_table) in apple_soc_cpufreq_get_rate()
171 static int apple_soc_cpufreq_set_target(struct cpufreq_policy *policy, in apple_soc_cpufreq_set_target() argument
174 struct apple_cpu_priv *priv = policy->driver_data; in apple_soc_cpufreq_set_target()
175 unsigned int pstate = policy->freq_table[index].driver_data; in apple_soc_cpufreq_set_target()
201 static unsigned int apple_soc_cpufreq_fast_switch(struct cpufreq_policy *policy, in apple_soc_cpufreq_fast_switch() argument
204 if (apple_soc_cpufreq_set_target(policy, policy->cached_resolved_idx) < 0) in apple_soc_cpufreq_fast_switch()
[all …]
/linux/fs/crypto/
H A Dpolicy.c3 * Encryption policy functions for per-file encryption support.
10 * Modified by Eric Biggers, 2019 for v2 policy support.
24 * @policy1: the first policy
25 * @policy2: the second policy
38 int fscrypt_policy_to_key_spec(const union fscrypt_policy *policy, in fscrypt_policy_to_key_spec() argument
41 switch (policy->version) { in fscrypt_policy_to_key_spec()
44 memcpy(key_spec->u.descriptor, policy->v1.master_key_descriptor, in fscrypt_policy_to_key_spec()
49 memcpy(key_spec->u.identifier, policy->v2.master_key_identifier, in fscrypt_policy_to_key_spec()
122 static bool supported_iv_ino_lblk_policy(const struct fscrypt_policy_v2 *policy, in supported_iv_ino_lblk_policy() argument
125 const char *type = (policy->flags & FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64) in supported_iv_ino_lblk_policy()
[all …]
/linux/net/netlink/
H A Dpolicy.c3 * NETLINK Policy advertisement to userspace
22 const struct nla_policy *policy; member
28 const struct nla_policy *policy, in add_policy() argument
34 if (!policy) in add_policy()
38 if (state->policies[i].policy == policy && in add_policy()
42 if (!state->policies[i].policy) { in add_policy()
43 state->policies[i].policy = policy; in add_policy()
60 state->policies[old_n_alloc].policy in add_policy()
83 netlink_policy_dump_get_policy_idx(struct netlink_policy_dump_state * state,const struct nla_policy * policy,unsigned int maxtype) netlink_policy_dump_get_policy_idx() argument
127 netlink_policy_dump_add_policy(struct netlink_policy_dump_state ** pstate,const struct nla_policy * policy,unsigned int maxtype) netlink_policy_dump_add_policy() argument
152 const struct nla_policy *policy; netlink_policy_dump_add_policy() local
438 struct nlattr *policy; netlink_policy_dump_write() local
[all...]
/linux/tools/perf/Documentation/
H A Dsecurity.txt13 Targeted policy with perf_event_open() access control capabilities:
15 1. Download selinux-policy SRPM package (e.g. selinux-policy-3.14.4-48.fc31.src.rpm on FC31)
18 # rpm -Uhv selinux-policy-3.14.4-48.fc31.src.rpm
22 # rpmbuild -bp selinux-policy.spec
24 3. Place patch below at rpmbuild/BUILD/selinux-policy-b86eaaf4dbcf2d51dd4432df7185c0eaf3cbcc02
27 # patch -p1 < selinux-policy-perf-events-perfmon.patch
28 patching file policy/flask/access_vectors
29 patching file policy/flask/security_classes
30 # cat selinux-policy-perf-events-perfmon.patch
31 diff -Nura a/policy/flask/access_vectors b/policy/flask/access_vectors
[all …]
/linux/drivers/hwtracing/stm/
H A Dpolicy.c3 * System Trace Module (STM) master/channel allocation policy management
6 * A master/channel allocation policy allows mapping string identifiers to
21 * STP Master/Channel allocation policy configfs layout.
31 struct stp_policy *policy; member
110 stm = policy_node->policy->stm; in stp_policy_node_masters_store()
157 stm = policy_node->policy->stm; in stp_policy_node_channels_store()
228 struct stp_policy *policy; in stp_policy_node_make() local
231 policy = container_of(group, struct stp_policy, group); in stp_policy_node_make()
235 policy = parent_node->policy; in stp_policy_node_make()
238 if (!policy->stm) in stp_policy_node_make()
[all …]
/linux/Documentation/cpu-freq/
H A Dcpu-drivers.rst48 .init - A pointer to the per-policy initialization function.
68 .exit - A pointer to a per-policy cleanup function called during
71 .suspend - A pointer to a per-policy suspend function which is called
73 policy.
75 .resume - A pointer to a per-policy resume function which is called
78 .ready - A pointer to a per-policy ready function which is called after
79 the policy is fully initialized.
86 .set_boost - A pointer to a per-policy function to enable/disable boost
94 cpufreq driver registers itself, the per-policy initialization function
95 cpufreq_driver.init is called if no cpufreq policy existed for the CPU.
[all …]
/linux/rust/kernel/
H A Dcpufreq.rs54 /// Supports multiple clock domains with per-policy governors in `cpu/cpuN/cpufreq/`.
119 /// Policy data.
209 /// use kernel::cpufreq::{Policy, TableIndex};
211 /// fn show_freq(policy: &Policy) -> Result {
212 /// let table = policy.freq_table()?;
386 /// CPU frequency policy.
392 /// A [`Policy`] instance always corresponds to a valid C `struct cpufreq_policy`.
402 /// use kernel::cpufreq::{DEFAULT_TRANSITION_LATENCY_NS, Policy};
405 /// fn update_policy(policy: &mut Policy) {
406 /// policy
[all …]
/linux/security/apparmor/
H A DKconfig48 bool "Allow loaded policy to be introspected"
52 This option selects whether introspection of loaded policy
55 of loaded policy, and check point and restore support. It
65 This option selects whether introspection of loaded policy
68 checking loaded policy. This option adds to policy load
72 bool "Enable policy hash introspection by default"
76 This option selects whether sha256 hashing of loaded policy
78 loaded policy provide system administrators a quick way to
79 verify that policy in the kernel matches what is expected,
80 however it can slow down policy load on some devices. In
[all …]
/linux/security/selinux/ss/
H A Dservices.c15 * Added conditional policy language extensions
20 * Added support for the policy capability bitmap
32 * Added support for runtime switching of the policy type
130 pr_info("SELinux: Class %s not defined in policy.\n", in selinux_set_mapping()
149 pr_info("SELinux: Permission %s in class %s not defined in policy.\n", in selinux_set_mapping()
174 * Get real, policy values from mapped values
186 * Get kernel value for class from its policy value
242 struct selinux_policy *policy; in security_mls_enabled() local
248 policy = rcu_dereference(selinux_state.policy); in security_mls_enabled()
249 mls_enabled = policy->policydb.mls_enabled; in security_mls_enabled()
[all …]
/linux/Documentation/ABI/testing/
H A Dconfigfs-stp-policy1 What: /config/stp-policy
9 What: /config/stp-policy/<device>.<policy>
13 This group is the root of a policy; its name is a concatenation
14 of an stm device name to which this policy applies and an
17 has a policy assigned to it, mkdir will fail with EBUSY.
19 What: /config/stp-policy/<device>.<policy>/device
23 STM device to which this policy applies, read only. Same as the
26 What: /config/stp-policy/<device>.<policy>/<node>
30 Policy node is a string identifier that software clients will
34 What: /config/stp-policy/<device>.<policy>/<node>/masters
[all …]
/linux/tools/testing/selftests/net/
H A Dxfrm_policy.sh4 # Check xfrm policy resolution. Topology:
15 # ns1: ping 10.0.1.253: passes via ipsec tunnel (direct policy)
16 # ns2: ping 10.0.2.253: passes via ipsec tunnel (direct policy)
38 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu…
40 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu…
64 # Adding a policy for '10.0.1.0/23' will make it necessary to
74 # adds new nodes to tree (neither network exists yet in policy database).
75 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block
78 ip -net $ns xfrm policy add src 10.2.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block
81 ip -net $ns xfrm policy add src 10.2.0.0/23 dst 10.0.1.0/24 dir fwd priority 200 action block
[all …]
/linux/drivers/thermal/
H A Dcpufreq_cooling.c60 * @policy: cpufreq policy.
73 struct cpufreq_policy *policy; member
237 struct cpufreq_policy *policy = cpufreq_cdev->policy; in cpufreq_get_requested_power() local
239 freq = cpufreq_quick_get(policy->cpu); in cpufreq_get_requested_power()
241 for_each_cpu(cpu, policy->related_cpus) { in cpufreq_get_requested_power()
256 trace_thermal_power_cpu_get_power_simple(policy->cpu, *power); in cpufreq_get_requested_power()
285 num_cpus = cpumask_weight(cpufreq_cdev->policy->cpus); in cpufreq_state2power()
320 struct cpufreq_policy *policy = cpufreq_cdev->policy; in cpufreq_power2state() local
327 trace_thermal_power_cpu_limit(policy->related_cpus, target_freq, *state, in cpufreq_power2state()
334 struct cpufreq_policy *policy; in em_is_sane() local
[all …]
/linux/kernel/sched/
H A Dsyscalls.c19 static inline int __normal_prio(int policy, int rt_prio, int nice) in __normal_prio() argument
23 if (dl_policy(policy)) in __normal_prio()
25 else if (rt_policy(policy)) in __normal_prio()
42 return __normal_prio(p->policy, p->rt_priority, PRIO_TO_NICE(p->static_prio)); in normal_prio()
164 * sched policy return value kernel prio user prio/nice
236 * sched_setparam() passes in -1 for its policy, to let the functions in DEFINE_CLASS()
244 int policy = attr->sched_policy; in DEFINE_CLASS() local
246 if (policy == SETPARAM_POLICY) in DEFINE_CLASS()
247 policy = p->policy; in DEFINE_CLASS()
249 p->policy = policy; in DEFINE_CLASS()
[all …]
/linux/Documentation/trace/
H A Dstm.rst26 To solve this mapping problem, stm class provides a policy management
28 identifiers to ranges of masters and channels. If these rules (policy)
32 This policy is a tree structure containing rules (policy_node) that
34 associated with it, located in "stp-policy" subsystem directory in
35 configfs. The topmost directory's name (the policy) is formatted as
36 the STM device name to which this policy applies and an arbitrary
40 $ ls /config/stp-policy/dummy_stm.my-policy/user
42 $ cat /config/stp-policy/dummy_stm.my-policy/user/masters
44 $ cat /config/stp-policy/dummy_stm.my-policy/user/channels
60 In order to find an appropriate policy node for a given trace source,
[all …]

12345678910>>...42