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

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

Merge "sched: print sched_cpu_load tracepoint for all CPUs"

parents 69007fd2 e3d8a00d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1784,12 +1784,12 @@ static int select_best_cpu(struct task_struct *p, int target, int reason)
	/* Todo : Optimize this loop */
	for_each_cpu_and(i, tsk_cpus_allowed(p), cpu_online_mask) {

		if (skip_cpu(p, i, reason))
			continue;

		trace_sched_cpu_load(cpu_rq(i), idle_cpu(i),
				     mostly_idle_cpu(i), power_cost(p, i));

		if (skip_cpu(p, i, reason))
			continue;

		/*
		 * The least-loaded mostly-idle CPU where the task
		 * won't fit is our fallback if we can't find a CPU