Lines Matching refs:time
64 static bool sugov_should_update_freq(struct sugov_policy *sg_policy, u64 time) in sugov_should_update_freq() argument
106 delta_ns = time - sg_policy->last_freq_update_time; in sugov_should_update_freq()
111 static bool sugov_update_next_freq(struct sugov_policy *sg_policy, u64 time, in sugov_update_next_freq() argument
132 sg_policy->last_freq_update_time = time; in sugov_update_next_freq()
249 static bool sugov_iowait_reset(struct sugov_cpu *sg_cpu, u64 time, in sugov_iowait_reset() argument
252 s64 delta_ns = time - sg_cpu->last_update; in sugov_iowait_reset()
278 static void sugov_iowait_boost(struct sugov_cpu *sg_cpu, u64 time, in sugov_iowait_boost() argument
285 sugov_iowait_reset(sg_cpu, time, set_iowait_boost)) in sugov_iowait_boost()
326 static unsigned long sugov_iowait_apply(struct sugov_cpu *sg_cpu, u64 time, in sugov_iowait_apply() argument
334 if (sugov_iowait_reset(sg_cpu, time, false)) in sugov_iowait_apply()
400 u64 time, unsigned long max_cap, in sugov_update_single_common() argument
405 sugov_iowait_boost(sg_cpu, time, flags); in sugov_update_single_common()
406 sg_cpu->last_update = time; in sugov_update_single_common()
410 if (!sugov_should_update_freq(sg_cpu->sg_policy, time)) in sugov_update_single_common()
413 boost = sugov_iowait_apply(sg_cpu, time, max_cap); in sugov_update_single_common()
419 static void sugov_update_single_freq(struct update_util_data *hook, u64 time, in sugov_update_single_freq() argument
430 if (!sugov_update_single_common(sg_cpu, time, max_cap, flags)) in sugov_update_single_freq()
443 if (!sugov_update_next_freq(sg_policy, time, next_f)) in sugov_update_single_freq()
460 static void sugov_update_single_perf(struct update_util_data *hook, u64 time, in sugov_update_single_perf() argument
473 sugov_update_single_freq(hook, time, flags); in sugov_update_single_perf()
479 if (!sugov_update_single_common(sg_cpu, time, max_cap, flags)) in sugov_update_single_perf()
488 sg_cpu->sg_policy->last_freq_update_time = time; in sugov_update_single_perf()
491 static unsigned int sugov_next_freq_shared(struct sugov_cpu *sg_cpu, u64 time) in sugov_next_freq_shared() argument
504 boost = sugov_iowait_apply(j_sg_cpu, time, max_cap); in sugov_next_freq_shared()
514 sugov_update_shared(struct update_util_data *hook, u64 time, unsigned int flags) in sugov_update_shared() argument
522 sugov_iowait_boost(sg_cpu, time, flags); in sugov_update_shared()
523 sg_cpu->last_update = time; in sugov_update_shared()
527 if (sugov_should_update_freq(sg_policy, time)) { in sugov_update_shared()
528 next_f = sugov_next_freq_shared(sg_cpu, time); in sugov_update_shared()
530 if (!sugov_update_next_freq(sg_policy, time, next_f)) in sugov_update_shared()
846 void (*uu)(struct update_util_data *data, u64 time, unsigned int flags); in sugov_start()