Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Vincent Guittot and committed by
Peter Zijlstra
9cdb4fe2 cccb45d7

+1 -1
+1 -1
kernel/sched/fair.c
··· 1161 1161 if (!sched_feat(PREEMPT_SHORT)) 1162 1162 return false; 1163 1163 1164 - if (curr->vlag == curr->deadline) 1164 + if (protect_slice(curr)) 1165 1165 return false; 1166 1166 1167 1167 return !entity_eligible(cfs_rq, curr);