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

Configure Feed

Select the types of activity you want to include in your feed.

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

+4 -9
+4 -9
include/linux/sched.h
··· 586 586 u64 sum_exec_runtime; 587 587 u64 prev_sum_exec_runtime; 588 588 u64 vruntime; 589 - union { 590 - /* 591 - * When !@on_rq this field is vlag. 592 - * When cfs_rq->curr == se (which implies @on_rq) 593 - * this field is vprot. See protect_slice(). 594 - */ 595 - s64 vlag; 596 - u64 vprot; 597 - }; 589 + /* Approximated virtual lag: */ 590 + s64 vlag; 591 + /* 'Protected' deadline, to give out minimum quantums: */ 592 + u64 vprot; 598 593 u64 slice; 599 594 600 595 u64 nr_migrations;