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

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

Merge "cpufreq: interactive: use mult_frac in sl_busy_to_laf"

parents 156735ae 4913af9b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -442,11 +442,13 @@ static u64 update_load(int cpu)
static unsigned int sl_busy_to_laf(struct cpufreq_interactive_policyinfo *ppol,
				   unsigned long busy)
{
	int prev_load;
	struct cpufreq_interactive_tunables *tunables =
		ppol->policy->governor_data;

	busy *= ppol->policy->cpuinfo.max_freq;
	return div64_s64(busy, tunables->timer_rate) * 100;
	prev_load = mult_frac(ppol->policy->cpuinfo.max_freq * 100,
				busy, tunables->timer_rate);
	return prev_load;
}

#define NEW_TASK_RATIO 75