Hello,

On 16/01/26 13:39, Gabriele Monaco wrote:
> Some utility functions on sched_dl_entity can be useful outside of
> deadline.c , for instance for modelling, without relying on raw
> structure fields.
> 
> Move functions like pi_of, is_dl_boosted, dl_is_implicit to deadline.h
> to make them available outside.
> 
> Signed-off-by: Gabriele Monaco <[email protected]>
> ---
>  include/linux/sched/deadline.h | 51 ++++++++++++++++++++++++++++++++++
>  kernel/sched/deadline.c        | 50 +--------------------------------
>  2 files changed, 52 insertions(+), 49 deletions(-)
> 
> diff --git a/include/linux/sched/deadline.h b/include/linux/sched/deadline.h
> index c40115d4e34d..9468a9b1090c 100644
> --- a/include/linux/sched/deadline.h
> +++ b/include/linux/sched/deadline.h
> @@ -37,4 +37,55 @@ extern void dl_clear_root_domain_cpu(int cpu);
>  extern u64 dl_cookie;
>  extern bool dl_bw_visited(int cpu, u64 cookie);
>  
> +extern struct rv_monitor rv_deadline;
> +
> +static bool dl_server(struct sched_dl_entity *dl_se)

Think we want to make this 'inline'? Just in case compiler decides not
to inline it.

> +{
> +     return dl_se->dl_server;
> +}

Thanks,
Juri


Reply via email to