diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index ea694d4f23a8db..c9151b8732a15d 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -5546,7 +5546,11 @@ check_preempt_tick(struct cfs_rq *cfs_rq, struct sched_entity *curr) * narrow margin doesn't have to wait for a full slice. * This also mitigates buddy induced latencies under load. */ +#ifdef CONFIG_GROUP_IDENTITY if (is_highclass(curr) && delta_exec < sysctl_sched_min_granularity) +#else + if (delta_exec < sysctl_sched_min_granularity) +#endif return; /* Must be on expel if no next se, and curr won't be expellee */