diff options
| author | Ingo Molnar <mingo@kernel.org> | 2025-11-26 07:31:28 +0300 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2025-12-15 09:52:44 +0300 |
| commit | 80390ead2080071cbd6f427ff8deb94d10a4a50f (patch) | |
| tree | 4559eebd77b98114587def55b6a6b8b7424fd038 | |
| parent | fb9a7458e508ef1beae8d80ee40c2cd1b5b45f3a (diff) | |
| download | linux-80390ead2080071cbd6f427ff8deb94d10a4a50f.tar.xz | |
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
| -rw-r--r-- | include/linux/sched.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index d395f2810fac..bf96a7d595e2 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -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; |
