Searched refs:policy (Results 1 – 15 of 15) sorted by relevance
/kernel/sched/ |
D | cpufreq_schedutil.c | 24 struct cpufreq_policy *policy; member 88 if (!cpufreq_this_cpu_can_update(sg_policy->policy)) in sugov_should_update_freq() 117 struct cpufreq_policy *policy = sg_policy->policy; in sugov_fast_switch() local 123 next_freq = cpufreq_driver_fast_switch(policy, next_freq); in sugov_fast_switch() 127 policy->cur = next_freq; in sugov_fast_switch() 130 for_each_cpu(cpu, policy->cpus) in sugov_fast_switch() 172 struct cpufreq_policy *policy = sg_policy->policy; in get_next_freq() local 174 policy->cpuinfo.max_freq : policy->cur; in get_next_freq() 183 return cpufreq_driver_resolve_freq(policy, freq); in get_next_freq() 490 if (sg_policy->policy->fast_switch_enabled) { in sugov_update_single() [all …]
|
D | cpufreq.c | 72 bool cpufreq_this_cpu_can_update(struct cpufreq_policy *policy) in cpufreq_this_cpu_can_update() argument 74 return cpumask_test_cpu(smp_processor_id(), policy->cpus) || in cpufreq_this_cpu_can_update() 75 (policy->dvfs_possible_from_any_cpu && in cpufreq_this_cpu_can_update()
|
D | sched.h | 151 static inline int idle_policy(int policy) in idle_policy() argument 153 return policy == SCHED_IDLE; in idle_policy() 155 static inline int fair_policy(int policy) in fair_policy() argument 157 return policy == SCHED_NORMAL || policy == SCHED_BATCH; in fair_policy() 160 static inline int rt_policy(int policy) in rt_policy() argument 162 return policy == SCHED_FIFO || policy == SCHED_RR; in rt_policy() 165 static inline int dl_policy(int policy) in dl_policy() argument 167 return policy == SCHED_DEADLINE; in dl_policy() 169 static inline bool valid_policy(int policy) in valid_policy() argument 171 return idle_policy(policy) || fair_policy(policy) || in valid_policy() [all …]
|
D | core.c | 2864 p->policy = SCHED_NORMAL; in sched_fork() 4684 int policy = attr->sched_policy; in __setscheduler_params() local 4686 if (policy == SETPARAM_POLICY) in __setscheduler_params() 4687 policy = p->policy; in __setscheduler_params() 4689 p->policy = policy; in __setscheduler_params() 4691 if (dl_policy(policy)) in __setscheduler_params() 4693 else if (fair_policy(policy)) in __setscheduler_params() 4758 int new_effective_prio, policy = attr->sched_policy; in __sched_setscheduler() local 4769 if (policy < 0) { in __sched_setscheduler() 4771 policy = oldpolicy = p->policy; in __sched_setscheduler() [all …]
|
D | topology.c | 348 struct cpufreq_policy *policy; in build_perf_domains() local 369 policy = cpufreq_cpu_get(i); in build_perf_domains() 370 if (!policy) in build_perf_domains() 372 gov = policy->governor; in build_perf_domains() 373 cpufreq_cpu_put(policy); in build_perf_domains()
|
D | idle.c | 322 WARN_ON_ONCE(current->policy != SCHED_FIFO); in play_idle()
|
D | deadline.c | 2552 int sched_dl_overflow(struct task_struct *p, int policy, in sched_dl_overflow() argument 2558 u64 new_bw = dl_policy(policy) ? to_ratio(period, runtime) : 0; in sched_dl_overflow() 2575 if (dl_policy(policy) && !task_has_dl_policy(p) && in sched_dl_overflow() 2581 } else if (dl_policy(policy) && task_has_dl_policy(p) && in sched_dl_overflow() 2594 } else if (!dl_policy(policy) && task_has_dl_policy(p)) { in sched_dl_overflow()
|
D | rt.c | 1217 return (tsk->policy == SCHED_RR) ? 1 : 0; in rt_se_rr_nr_running() 2381 if (p->policy != SCHED_RR) in task_tick_rt() 2407 if (task->policy == SCHED_RR) in get_rr_interval_rt()
|
D | debug.c | 955 P(policy); in proc_sched_show_task()
|
D | fair.c | 6779 if (unlikely(p->policy != SCHED_NORMAL) || !sched_feat(WAKEUP_PREEMPTION)) in check_preempt_wakeup() 6992 if (curr->policy != SCHED_BATCH) { in yield_task_fair()
|
/kernel/ |
D | taskstats.c | 667 const struct nla_policy *policy = NULL; in taskstats_pre_doit() local 671 policy = taskstats_cmd_get_policy; in taskstats_pre_doit() 674 policy = cgroupstats_cmd_get_policy; in taskstats_pre_doit() 681 TASKSTATS_CMD_ATTR_MAX, policy, in taskstats_pre_doit()
|
D | tsacct.c | 50 stats->ac_sched = tsk->policy; in bacct_add_tsk()
|
/kernel/locking/ |
D | locktorture.c | 440 int policy; in torture_rtmutex_boost() local 452 policy = SCHED_FIFO; in torture_rtmutex_boost() 466 policy = SCHED_NORMAL; in torture_rtmutex_boost() 472 sched_setscheduler_nocheck(current, policy, ¶m); in torture_rtmutex_boost()
|
/kernel/trace/ |
D | trace.h | 159 unsigned long policy; member
|
D | trace.c | 1534 max_data->policy = tsk->policy; in __update_max_tr() 3678 data->policy, data->rt_priority); in print_trace_header()
|