Re: [PATCH] sched/fair: remove 2 early returns
From: Peter Zijlstra
Date: Wed Nov 01 2023 - 05:02:39 EST
On Thu, Oct 26, 2023 at 08:37:20PM +0800, Peng Liang wrote:
> After commit 5e963f2bd465 ("sched/fair: Commit to EEVDF"), the 2 early
> returns in entity_tick can be removed safely.
Right, so I still need to go through the whole hrtick thing. I suspect
there's more to clean up / fix.
For exapmle, I don't think hrtick_update() still makes sense.
As to the patch at hand, since slices are now fully controlled through
update_curr() -> update_deadline(), I suspect we can clear out more.
OTOH, we have the problem where rq-clock and wall-time are not running
at the same rate, so hrtick might come in early, so that's something to
look into.
So I don't mind this patch per-se, but I do think there's far more work
to be done here.