Lines Matching refs:time
63 static bool sugov_should_update_freq(struct sugov_policy *sg_policy, u64 time) in sugov_should_update_freq() argument
91 delta_ns = time - sg_policy->last_freq_update_time; in sugov_should_update_freq()
96 static bool sugov_update_next_freq(struct sugov_policy *sg_policy, u64 time, in sugov_update_next_freq() argument
105 sg_policy->last_freq_update_time = time; in sugov_update_next_freq()
179 static bool sugov_iowait_reset(struct sugov_cpu *sg_cpu, u64 time, in sugov_iowait_reset() argument
182 s64 delta_ns = time - sg_cpu->last_update; in sugov_iowait_reset()
208 static void sugov_iowait_boost(struct sugov_cpu *sg_cpu, u64 time, in sugov_iowait_boost() argument
215 sugov_iowait_reset(sg_cpu, time, set_iowait_boost)) in sugov_iowait_boost()
255 static void sugov_iowait_apply(struct sugov_cpu *sg_cpu, u64 time) in sugov_iowait_apply() argument
264 if (sugov_iowait_reset(sg_cpu, time, false)) in sugov_iowait_apply()
314 u64 time, unsigned int flags) in sugov_update_single_common() argument
316 sugov_iowait_boost(sg_cpu, time, flags); in sugov_update_single_common()
317 sg_cpu->last_update = time; in sugov_update_single_common()
321 if (!sugov_should_update_freq(sg_cpu->sg_policy, time)) in sugov_update_single_common()
325 sugov_iowait_apply(sg_cpu, time); in sugov_update_single_common()
330 static void sugov_update_single_freq(struct update_util_data *hook, u64 time, in sugov_update_single_freq() argument
338 if (!sugov_update_single_common(sg_cpu, time, flags)) in sugov_update_single_freq()
356 if (!sugov_update_next_freq(sg_policy, time, next_f)) in sugov_update_single_freq()
373 static void sugov_update_single_perf(struct update_util_data *hook, u64 time, in sugov_update_single_perf() argument
385 sugov_update_single_freq(hook, time, flags); in sugov_update_single_perf()
389 if (!sugov_update_single_common(sg_cpu, time, flags)) in sugov_update_single_perf()
405 sg_cpu->sg_policy->last_freq_update_time = time; in sugov_update_single_perf()
408 static unsigned int sugov_next_freq_shared(struct sugov_cpu *sg_cpu, u64 time) in sugov_next_freq_shared() argument
420 sugov_iowait_apply(j_sg_cpu, time); in sugov_next_freq_shared()
434 sugov_update_shared(struct update_util_data *hook, u64 time, unsigned int flags) in sugov_update_shared() argument
442 sugov_iowait_boost(sg_cpu, time, flags); in sugov_update_shared()
443 sg_cpu->last_update = time; in sugov_update_shared()
447 if (sugov_should_update_freq(sg_policy, time)) { in sugov_update_shared()
448 next_f = sugov_next_freq_shared(sg_cpu, time); in sugov_update_shared()
450 if (!sugov_update_next_freq(sg_policy, time, next_f)) in sugov_update_shared()
755 void (*uu)(struct update_util_data *data, u64 time, unsigned int flags); in sugov_start()