Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sched_ext: Use bitfields for boolean warning flags

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>

Tejun Heo c7e73974 f75efc8f

+2 -2
+2 -2
kernel/sched/ext_internal.h
··· 871 871 struct scx_dispatch_q **global_dsqs; 872 872 struct scx_sched_pcpu __percpu *pcpu; 873 873 874 - bool warned_zero_slice; 875 - bool warned_deprecated_rq; 874 + bool warned_zero_slice:1; 875 + bool warned_deprecated_rq:1; 876 876 877 877 atomic_t exit_kind; 878 878 struct scx_exit_info *exit_info;