Re: [PATCH v2 9/9] sched,fair: Alternative sched_slice()

From: Peter Zijlstra
Date: Mon Apr 12 2021 - 06:26:46 EST


On Mon, Apr 12, 2021 at 12:14:30PM +0200, Peter Zijlstra wrote:
> @@ -697,6 +703,10 @@ static u64 sched_slice(struct cfs_rq *cf
> }
> slice = __calc_delta(slice, se->load.weight, load);
> }
> +
> + if (sched_feat(BASE_SLICE))
> + slice = min(slice, (u64)sysctl_sched_min_granularity);

*Groan*... clearly that should be max().