diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:04 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:04 -0400 |
commit | e9acbff6484df51fd880e0f5fe0224e8be34c17b (patch) | |
tree | 9ac0275ae7dcd13fb8b628971bf038e9f7318d1e /include | |
parent | 08e2388aa1e40cb06f7d04ac621e2ae94e1d8fdc (diff) |
sched: introduce se->vruntime
introduce se->vruntime as a sum of weighted delta-exec's, and use that
as the key into the tree.
the idea to use absolute virtual time as the basic metric of scheduling
has been first raised by William Lee Irwin, advanced by Tong Li and first
prototyped by Roman Zippel in the "Really Fair Scheduler" (RFS) patchset.
also see:
http://lkml.org/lkml/2007/9/2/76
for a simpler variant of this patch.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Mike Galbraith <efault@gmx.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sched.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 3c38a5040e8f..5e5c457fba86 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -902,6 +902,7 @@ struct sched_entity { | |||
902 | 902 | ||
903 | u64 exec_start; | 903 | u64 exec_start; |
904 | u64 sum_exec_runtime; | 904 | u64 sum_exec_runtime; |
905 | u64 vruntime; | ||
905 | u64 prev_sum_exec_runtime; | 906 | u64 prev_sum_exec_runtime; |
906 | u64 wait_start_fair; | 907 | u64 wait_start_fair; |
907 | u64 sleep_start_fair; | 908 | u64 sleep_start_fair; |