Skip to content

Commit 9cdb4fe

Browse files
vingu-linaroPeter Zijlstra
authored andcommitted
sched/fair: Use protect_slice() instead of direct comparison
Replace the test by the relevant protect_slice() function. Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Dhaval Giani (AMD) <dhaval@gianis.ca> Link: https://lkml.kernel.org/r/20250708165630.1948751-2-vincent.guittot@linaro.org
1 parent cccb45d commit 9cdb4fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/sched/fair.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ static inline bool did_preempt_short(struct cfs_rq *cfs_rq, struct sched_entity
11611161
if (!sched_feat(PREEMPT_SHORT))
11621162
return false;
11631163

1164-
if (curr->vlag == curr->deadline)
1164+
if (protect_slice(curr))
11651165
return false;
11661166

11671167
return !entity_eligible(cfs_rq, curr);

0 commit comments

Comments
 (0)