Lines Matching defs:policy
46 #include <mach/policy.h>
65 * Set scheduling policy & priority for thread.
70 integer_t policy,
76 invalid_policy(policy) )
82 if ((policy == POLICY_TIMESHARE)
84 policy = TH_MODE_FIXED;
94 if (policy == POLICY_TIMESHARE && !oldmode) {
101 if (policy != POLICY_TIMESHARE && oldmode) {
109 if (policy == POLICY_TIMESHARE)
162 * Set scheduling policy and parameters, both base and limit, for
163 * the given thread. Policy can be any policy implemented by the
170 policy_t policy,
185 switch (policy) {
261 result = thread_policy_common(thread, policy, bas);
272 * Set scheduling policy and parameters, both base and limit, for
273 * the given thread. Policy must be a policy which is enabled for the
279 policy_t policy,
297 if ( invalid_policy(policy) ||
298 ((POLICY_TIMESHARE | POLICY_RR | POLICY_FIFO) & policy) == 0 ) {
308 switch (policy) {
372 switch (policy) {
451 policy, base, count, limit, limcount);