Skip to content
Snippets Groups Projects
Commit 094fc377 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

Merge 9d091e87 ("cpufreq: schedutil: Simplify sugov_update_next_freq()")...

Merge 9d091e87 ("cpufreq: schedutil: Simplify sugov_update_next_freq()") into android13-5.10-lts

Steps on the way to 5.10.235

Resolves merge conflicts with:
	kernel/sched/cpufreq_schedutil.c

Change-Id: Iabaa7bb6bbfefe1b40f0fa30406d55e29ddfb4d5
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parents fc9aa814 9d091e87
No related branches found
No related tags found
No related merge requests found
......@@ -103,14 +103,14 @@ static bool sugov_should_update_freq(struct sugov_policy *sg_policy, u64 time)
static bool sugov_update_next_freq(struct sugov_policy *sg_policy, u64 time,
unsigned int next_freq)
{
if (!sg_policy->need_freq_update) {
if (sg_policy->need_freq_update)
sg_policy->need_freq_update = cpufreq_driver_test_flags(CPUFREQ_NEED_UPDATE_LIMITS);
else {
s64 delta_ns = time - sg_policy->last_freq_update_time;
trace_android_vh_update_next_freq(sg_policy->policy, sg_policy->next_freq,
&next_freq, delta_ns);
if (sg_policy->next_freq == next_freq)
return false;
} else {
sg_policy->need_freq_update = cpufreq_driver_test_flags(CPUFREQ_NEED_UPDATE_LIMITS);
}
sg_policy->next_freq = next_freq;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment