]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
sched_ext: Use bitfields for boolean warning flags
authorTejun Heo <tj@kernel.org>
Tue, 23 Sep 2025 19:03:26 +0000 (09:03 -1000)
committerTejun Heo <tj@kernel.org>
Tue, 23 Sep 2025 19:03:26 +0000 (09:03 -1000)
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.

Acked-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext_internal.h

index 2e289931e567feb1c449ccfcb956e14c36f274b6..1a80d01b1f0c43ec73216d95133780a5cf65cc66 100644 (file)
@@ -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;