diff --git a/include/trace/hooks/sched.h b/include/trace/hooks/sched.h index 87e84bbac155..760f017220ce 100644 --- a/include/trace/hooks/sched.h +++ b/include/trace/hooks/sched.h @@ -436,10 +436,12 @@ DECLARE_HOOK(android_vh_account_task_time, TP_PROTO(struct task_struct *p, struct rq *rq, int user_tick), TP_ARGS(p, rq, user_tick)); +struct cpufreq_policy; DECLARE_HOOK(android_vh_map_util_freq, TP_PROTO(unsigned long util, unsigned long freq, - unsigned long cap, unsigned long *next_freq), - TP_ARGS(util, freq, cap, next_freq)); + unsigned long cap, unsigned long *next_freq, struct cpufreq_policy *policy, + bool *need_freq_update), + TP_ARGS(util, freq, cap, next_freq, policy, need_freq_update)); DECLARE_RESTRICTED_HOOK(android_rvh_set_cpus_allowed_comm, TP_PROTO(struct task_struct *p, const struct cpumask *new_mask), diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c index d6e1a9453fb7..df8200c8b3e7 100644 --- a/kernel/sched/cpufreq_schedutil.c +++ b/kernel/sched/cpufreq_schedutil.c @@ -178,7 +178,8 @@ static unsigned int get_next_freq(struct sugov_policy *sg_policy, unsigned long next_freq = 0; freq = get_capacity_ref_freq(policy); - trace_android_vh_map_util_freq(util, freq, max, &next_freq); + trace_android_vh_map_util_freq(util, freq, max, &next_freq, policy, + &sg_policy->need_freq_update); if (next_freq) freq = next_freq; else