Home
last modified time | relevance | path

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

/Linux-v4.19/kernel/sched/
Dcpufreq_schedutil.c48 struct sugov_policy *sg_policy; member
69 static bool sugov_should_update_freq(struct sugov_policy *sg_policy, u64 time) in sugov_should_update_freq() argument
89 if (sg_policy->policy->fast_switch_enabled && in sugov_should_update_freq()
90 !cpufreq_this_cpu_can_update(sg_policy->policy)) in sugov_should_update_freq()
93 if (unlikely(sg_policy->need_freq_update)) in sugov_should_update_freq()
96 delta_ns = time - sg_policy->last_freq_update_time; in sugov_should_update_freq()
98 return delta_ns >= sg_policy->freq_update_delay_ns; in sugov_should_update_freq()
101 static bool sugov_update_next_freq(struct sugov_policy *sg_policy, u64 time, in sugov_update_next_freq() argument
104 if (sg_policy->next_freq == next_freq) in sugov_update_next_freq()
107 sg_policy->next_freq = next_freq; in sugov_update_next_freq()
[all …]