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

Commit b04fa71e 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 unnecessary HMP scheduler stat re-accounting"

parents 5293c2e7 9b5b94c9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4448,13 +4448,13 @@ static inline void update_entity_load_avg(struct sched_entity *se,
	 */
	if (entity_is_task(se)) {
		now = cfs_rq_clock_task(cfs_rq);
		if (se->on_rq)
		if (sched_use_pelt && se->on_rq)
			dec_hmp_sched_stats_fair(rq_of(cfs_rq), task_of(se));
	} else
		now = cfs_rq_clock_task(group_cfs_rq(se));

	decayed = __update_entity_runnable_avg(cpu, now, &se->avg, se->on_rq);
	if (entity_is_task(se) && se->on_rq)
	if (sched_use_pelt && entity_is_task(se) && se->on_rq)
		inc_hmp_sched_stats_fair(rq_of(cfs_rq), task_of(se));

	if (!decayed)