aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2007-10-15 11:00:10 -0400
committerIngo Molnar <mingo@elte.hu>2007-10-15 11:00:10 -0400
commit67e9fb2a39a1d454218d50383094940982be138f (patch)
tree3b981b8d43d6c23f070df73033d731a6f00f0b0b /kernel/sched.c
parent1aa4731eff7dab7bd01747b46f654f449f1cfc2c (diff)
sched: add vslice
add vslice: the load-dependent "virtual slice" a task should run ideally, so that the observed latency stays within the sched_latency window. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 5004dff91850..fe1165b226a1 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1615,6 +1615,7 @@ static void __sched_fork(struct task_struct *p)
1615 p->se.exec_start = 0; 1615 p->se.exec_start = 0;
1616 p->se.sum_exec_runtime = 0; 1616 p->se.sum_exec_runtime = 0;
1617 p->se.prev_sum_exec_runtime = 0; 1617 p->se.prev_sum_exec_runtime = 0;
1618 p->se.last_min_vruntime = 0;
1618 1619
1619#ifdef CONFIG_SCHEDSTATS 1620#ifdef CONFIG_SCHEDSTATS
1620 p->se.wait_start = 0; 1621 p->se.wait_start = 0;
@@ -6495,6 +6496,7 @@ static inline void init_cfs_rq(struct cfs_rq *cfs_rq, struct rq *rq)
6495#ifdef CONFIG_FAIR_GROUP_SCHED 6496#ifdef CONFIG_FAIR_GROUP_SCHED
6496 cfs_rq->rq = rq; 6497 cfs_rq->rq = rq;
6497#endif 6498#endif
6499 cfs_rq->min_vruntime = (u64)(-(1LL << 20));
6498} 6500}
6499 6501
6500void __init sched_init(void) 6502void __init sched_init(void)