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

Commit 08bcaf59 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched/fair: correct fastpath"

parents 5bc14907 258cafe4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -6787,7 +6787,9 @@ static void find_best_target(struct sched_domain *sd, cpumask_t *cpus,
		!cpu_isolated(prev_cpu) && cpu_online(prev_cpu) &&
		idle_cpu(prev_cpu)) {

		if (idle_get_state_idx(cpu_rq(prev_cpu)) <= 1) {
		if (idle_get_state_idx(cpu_rq(prev_cpu)) <=
			(is_min_capacity_cpu(prev_cpu) ? 1 : 0)) {

			target_cpu = prev_cpu;

			fbt_env->fastpath = PREV_CPU_FASTPATH;