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

Commit d74911a0 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 migrating tasks to little cores due to EA"

parents d4c31200 a7bc0926
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1860,6 +1860,10 @@ static int skip_cpu(struct task_struct *p, int cpu, int reason)
		skip = (rq->capacity >= task_rq->capacity);
		break;

	case MOVE_TO_POWER_EFFICIENT_CPU:
		skip = rq->capacity < task_rq->capacity  ||
			power_cost(p, cpu) >  power_cost(p,  task_cpu(p));
		break;
	default:
		skip = (cpu == task_cpu(p));
		break;