mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 22:36:17 +01:00
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>
This commit is contained in:
parent
f75efc8f4c
commit
c7e739746d
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue