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

Commit a3f7847f authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

sched: Improve the scheduler



This change is for general scheduler improvement.

Change-Id: I4b3bf8724fe5c68c3e7e6cef689874eec0d430ef
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent c5967c53
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;