lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aW4CmOTG6IOsmbGp@jlelli-thinkpadt14gen4.remote.csb>
Date: Mon, 19 Jan 2026 11:08:24 +0100
From: Juri Lelli <juri.lelli@...hat.com>
To: Gabriele Monaco <gmonaco@...hat.com>
Cc: linux-kernel@...r.kernel.org, Steven Rostedt <rostedt@...dmis.org>,
	Nam Cao <namcao@...utronix.de>, Juri Lelli <jlelli@...hat.com>,
	Ingo Molnar <mingo@...hat.com>,
	Peter Zijlstra <peterz@...radead.org>,
	Tomas Glozar <tglozar@...hat.com>,
	Clark Williams <williams@...hat.com>,
	John Kacur <jkacur@...hat.com>, linux-trace-kernel@...r.kernel.org
Subject: Re: [PATCH v4 13/15] sched/deadline: Move some utility functions to
 deadline.h

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 <gmonaco@...hat.com>
> ---
>  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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ