[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aNLq4VAjKtsaE6Kc@gpd4>
Date: Tue, 23 Sep 2025 20:45:53 +0200
From: Andrea Righi <arighi@...dia.com>
To: Tejun Heo <tj@...nel.org>
Cc: David Vernet <void@...ifault.com>, Changwoo Min <changwoo@...lia.com>,
linux-kernel@...r.kernel.org, sched-ext@...ts.linux.dev
Subject: Re: [PATCH v2 4/7] sched_ext: Use bitfields for boolean warning flags
On Tue, Sep 23, 2025 at 06:58:06AM -1000, Tejun Heo wrote:
> Convert warned_zero_slice and warned_deprecated_rq in scx_sched struct to
> single-bit bitfields. While this doesn't reduce struct size immediately,
> it prepares for future bitfield additions.
>
> v2: Update patch description.
>
> Signed-off-by: Tejun Heo <tj@...nel.org>
Acked-by: Andrea Righi <arighi@...dia.com>
Thanks,
-Andrea
> ---
> kernel/sched/ext_internal.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> --- a/kernel/sched/ext_internal.h
> +++ b/kernel/sched/ext_internal.h
> @@ -871,8 +871,8 @@ struct scx_sched {
> struct scx_dispatch_q **global_dsqs;
> struct scx_sched_pcpu __percpu *pcpu;
>
> - bool warned_zero_slice;
> - bool warned_deprecated_rq;
> + bool warned_zero_slice:1;
> + bool warned_deprecated_rq:1;
>
> atomic_t exit_kind;
> struct scx_exit_info *exit_info;
Powered by blists - more mailing lists