Re: [RFC PATCH v4 04/28] sched/rt: Move some functions from rt.c to sched.h

From: Juri Lelli

Date: Thu Jan 15 2026 - 09:40:17 EST


Hello,

On 01/12/25 13:41, Yuri Andriaccio wrote:
> From: luca abeni <luca.abeni@xxxxxxxxxxxxxxx>
>
> Make the following functions/macros be non-static and move them in
> sched.h, so that they can be also used in other source files:
>
> - rt_entity_is_task()
> - rt_task_of()
> - rq_of_rt_rq()
> - rt_rq_of_se()
> - rq_of_rt_se()
>
> There are no functional changes. This is needed by future patches.
>
> Signed-off-by: luca abeni <luca.abeni@xxxxxxxxxxxxxxx>
> Signed-off-by: Yuri Andriaccio <yurand2000@xxxxxxxxx>

Same question about container_of as for previous patch (even if this is
just moving and not adding new code). But, let's see what we decide to
do about that.

Reviewed-by: Juri Lelli <juri.lelli@xxxxxxxxxx>

Thanks,
Juri