Re: [PATCH 1/2] sched/uclamp: Delegate uclamp to each sched_class
From: Tejun Heo
Date: Wed Jul 03 2024 - 14:13:43 EST
On Wed, Jul 03, 2024 at 11:07:47AM +0100, Hongyan Xia wrote:
> uclamp-related operations are written in core.c in a way that may
> suggest it is a global thing regardless of sched_class, but we end up
> checking sched_class->uclamp_enabled, so in reality it is sched_class
> specific anyway.
>
> Remove sched_class->uclamp_enabled and simply delegate uclamp to
> sched_class->{enqueue,dequeue}_task(). This also removes extra
> uclamp_enabled checks in uclamp_rq_{inc,dec}().
>
> No functional changes for fair and RT.
>
> Signed-off-by: Hongyan Xia <hongyan.xia2@xxxxxxx>
Acked-by: Tejun Heo <tj@xxxxxxxxxx>
Thanks.
--
tejun