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

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

Merge "sched: Fix the bug in select_best_cpu() that returns -1 as target_cpu"

parents 48b8215e a761ae85
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3240,7 +3240,8 @@ retry:
			sbc_flag |= SBC_FLAG_IDLE_LEAST_LOADED;
		}
	} else if (stats.best_cpu >= 0) {
		if (stats.best_cpu != task_cpu(p) &&
		if (stats.best_sibling_cpu >= 0 &&
				stats.best_cpu != task_cpu(p) &&
				stats.min_cost == stats.best_sibling_cpu_cost) {
			stats.best_cpu = stats.best_sibling_cpu;
			sbc_flag |= SBC_FLAG_BEST_SIBLING;