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

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

Merge "sched: avoid unnecessary multiplication and division"

parents bb7ffadc f9aa8547
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -944,8 +944,10 @@ static inline u64 scale_load_to_cpu(u64 task_load, int cpu)
{
	struct rq *rq = cpu_rq(cpu);

	if (rq->load_scale_factor != 1024) {
		task_load *= (u64)rq->load_scale_factor;
		task_load /= 1024;
	}

	return task_load;
}