mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
sched/fair: Separate se->vlag from se->vprot
There's no real space concerns here and keeping these fields in a union makes reading (and tracing) the scheduler code harder. Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://patch.msgid.link/20251201064647.1851919-4-mingo@kernel.org
This commit is contained in:
parent
fb9a7458e5
commit
80390ead20
|
|
@ -586,15 +586,10 @@ struct sched_entity {
|
|||
u64 sum_exec_runtime;
|
||||
u64 prev_sum_exec_runtime;
|
||||
u64 vruntime;
|
||||
union {
|
||||
/*
|
||||
* When !@on_rq this field is vlag.
|
||||
* When cfs_rq->curr == se (which implies @on_rq)
|
||||
* this field is vprot. See protect_slice().
|
||||
*/
|
||||
s64 vlag;
|
||||
u64 vprot;
|
||||
};
|
||||
/* Approximated virtual lag: */
|
||||
s64 vlag;
|
||||
/* 'Protected' deadline, to give out minimum quantums: */
|
||||
u64 vprot;
|
||||
u64 slice;
|
||||
|
||||
u64 nr_migrations;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user