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

Commit df7629e9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: update depth before enqueue entity"

parents a7470c8a 84781e25
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -4814,6 +4814,14 @@ enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int flags)

	update_stats_enqueue(cfs_rq, se, !!(flags & ENQUEUE_MIGRATING));
	check_spread(cfs_rq, se);

#ifdef CONFIG_FAIR_GROUP_SCHED
	/*
	 * Update depth before it can be picked as next sched entity.
	 */
	se->depth = se->parent ? se->parent->depth + 1 : 0;
#endif

	if (se != cfs_rq->curr)
		__enqueue_entity(cfs_rq, se);
	se->on_rq = 1;
+8 −0
Original line number Diff line number Diff line
@@ -5023,6 +5023,14 @@ enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int flags)

	update_stats_enqueue(cfs_rq, se, !!(flags & ENQUEUE_MIGRATING));
	check_spread(cfs_rq, se);

#ifdef CONFIG_FAIR_GROUP_SCHED
	/*
	 * Update depth before it can be picked as next sched entity.
	 */
	se->depth = se->parent ? se->parent->depth + 1 : 0;
#endif

	if (se != cfs_rq->curr)
		__enqueue_entity(cfs_rq, se);
	se->on_rq = 1;