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

Commit 47cb4b24 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: Improve the scheduler"

parents 700d775d a3f7847f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -365,11 +365,12 @@ bool early_detection_notify(struct rq *rq, u64 wallclock)
	struct task_struct *p;
	int loop_max = 10;

	rq->ed_task = NULL;

	if ((!walt_rotation_enabled && sched_boost_policy() ==
			SCHED_BOOST_NONE) || !rq->cfs.h_nr_running)
		return 0;

	rq->ed_task = NULL;
	list_for_each_entry(p, &rq->cfs_tasks, se.group_node) {
		if (!loop_max)
			break;