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

Commit 12644d0e authored by Lingutla Chandrasekhar's avatar Lingutla Chandrasekhar
Browse files

sched: Improve the scheduler



This change is for general scheduler improvement.

Change-Id: I8a65125f4f5a123f5a9551a6a4876e81d1b77dcf
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
parent c9a7c3f4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -7323,8 +7323,11 @@ static inline struct cpumask *find_rtg_target(struct task_struct *p)
	grp = task_related_thread_group(p);
	if (grp && grp->preferred_cluster && is_task_util_above_min_thresh(p)) {
		rtg_target = &grp->preferred_cluster->cpus;

		if (!task_fits_max(p, cpumask_first(rtg_target)))
			rtg_target = NULL;
		else if (cpumask_subset(rtg_target, &asym_cap_sibling_cpus))
			rtg_target = &asym_cap_sibling_cpus;
	} else {
		rtg_target = NULL;
	}
+2 −1
Original line number Diff line number Diff line
@@ -2572,7 +2572,8 @@ int preferred_cluster(struct sched_cluster *cluster, struct task_struct *p)

	grp = task_related_thread_group(p);
	if (grp)
		rc = (grp->preferred_cluster == cluster);
		rc = ((grp->preferred_cluster == cluster) ||
		      cpumask_subset(&cluster->cpus, &asym_cap_sibling_cpus));

	rcu_read_unlock();
	return rc;