Home
last modified time | relevance | path

Searched refs:sg_policy (Results 1 – 1 of 1) sorted by relevance

/kernel/sched/
Dcpufreq_schedutil.c44 struct sugov_policy *sg_policy; member
65 static bool sugov_should_update_freq(struct sugov_policy *sg_policy, u64 time) in sugov_should_update_freq() argument
84 if (!cpufreq_this_cpu_can_update(sg_policy->policy)) in sugov_should_update_freq()
87 if (unlikely(sg_policy->limits_changed)) { in sugov_should_update_freq()
88 sg_policy->limits_changed = false; in sugov_should_update_freq()
89 sg_policy->need_freq_update = true; in sugov_should_update_freq()
93 delta_ns = time - sg_policy->last_freq_update_time; in sugov_should_update_freq()
95 return delta_ns >= sg_policy->freq_update_delay_ns; in sugov_should_update_freq()
98 static bool sugov_update_next_freq(struct sugov_policy *sg_policy, u64 time, in sugov_update_next_freq() argument
101 if (sg_policy->need_freq_update) in sugov_update_next_freq()
[all …]