Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1f31171 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cpufreq: cpu-boost: Consider only task load to decide on sync frequency"

parents 3b78fdd6 d77dfa7f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -167,8 +167,9 @@ static int boost_mig_sync_thread(void *data)
		if (ret)
			continue;

		req_freq = max((dest_policy.max * s->task_load) / 100,
							src_policy.cur);
		req_freq = load_based_syncs ?
			(dest_policy.cpuinfo.max_freq * s->task_load) / 100 :
							src_policy.cur;

		if (req_freq <= dest_policy.cpuinfo.min_freq) {
			pr_debug("No sync. Sync Freq:%u\n", req_freq);