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

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

Merge "sched/fair: Don't let tasks slip away from gold to silver cluster"

parents 31afc3e1 cc68b671
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -187,6 +187,7 @@ unsigned int sysctl_sched_min_task_util_for_boost = 51;
/* 0.68ms default for 20ms window size scaled to 1024 */
unsigned int sysctl_sched_min_task_util_for_colocation = 35;
#endif
unsigned int sched_small_task_threshold = 102;

static inline void update_load_add(struct load_weight *lw, unsigned long inc)
{
@@ -9966,7 +9967,9 @@ static struct rq *find_busiest_queue(struct lb_env *env,
		 */
		if (env->sd->flags & SD_ASYM_CPUCAPACITY &&
		    capacity_of(env->dst_cpu) < capacity &&
		    rq->nr_running == 1)
		    (rq->nr_running == 1 ||
			 (rq->nr_running == 2 && task_util(rq->curr) <
			  sched_small_task_threshold)))
			continue;

		wl = weighted_cpuload(rq);