Commit 9cdb4fe2 authored by Vincent Guittot's avatar Vincent Guittot Committed by Peter Zijlstra
Browse files

sched/fair: Use protect_slice() instead of direct comparison

parent cccb45d7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1161,7 +1161,7 @@ static inline bool did_preempt_short(struct cfs_rq *cfs_rq, struct sched_entity
	if (!sched_feat(PREEMPT_SHORT))
		return false;

	if (curr->vlag == curr->deadline)
	if (protect_slice(curr))
		return false;

	return !entity_eligible(cfs_rq, curr);