diff --git a/include/trace/hooks/sched.h b/include/trace/hooks/sched.h index 8cf136627278..a7c72bc13858 100644 --- a/include/trace/hooks/sched.h +++ b/include/trace/hooks/sched.h @@ -225,10 +225,12 @@ DECLARE_RESTRICTED_HOOK(android_rvh_sched_exec, TP_PROTO(bool *cond), TP_ARGS(cond), 1); +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)); struct em_perf_domain; DECLARE_HOOK(android_vh_em_cpu_energy, diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c index caa526ba16ea..0f7bc658ecec 100644 --- a/kernel/sched/cpufreq_schedutil.c +++ b/kernel/sched/cpufreq_schedutil.c @@ -165,7 +165,8 @@ static unsigned int get_next_freq(struct sugov_policy *sg_policy, policy->cpuinfo.max_freq : policy->cur; unsigned long next_freq = 0; - 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