diff options
-rw-r--r-- | include/linux/sched.h | 1 | ||||
-rw-r--r-- | kernel/sched.c | 1 | ||||
-rw-r--r-- | kernel/sched_fair.c | 13 |
3 files changed, 3 insertions, 12 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index d74830cc51eb..2c33227b0f82 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -908,7 +908,6 @@ struct sched_entity { | |||
908 | u64 sum_exec_runtime; | 908 | u64 sum_exec_runtime; |
909 | u64 vruntime; | 909 | u64 vruntime; |
910 | u64 prev_sum_exec_runtime; | 910 | u64 prev_sum_exec_runtime; |
911 | u64 last_min_vruntime; | ||
912 | 911 | ||
913 | #ifdef CONFIG_SCHEDSTATS | 912 | #ifdef CONFIG_SCHEDSTATS |
914 | u64 wait_start; | 913 | u64 wait_start; |
diff --git a/kernel/sched.c b/kernel/sched.c index c779bf9d3552..744bd5050f10 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -1616,7 +1616,6 @@ static void __sched_fork(struct task_struct *p) | |||
1616 | p->se.exec_start = 0; | 1616 | p->se.exec_start = 0; |
1617 | p->se.sum_exec_runtime = 0; | 1617 | p->se.sum_exec_runtime = 0; |
1618 | p->se.prev_sum_exec_runtime = 0; | 1618 | p->se.prev_sum_exec_runtime = 0; |
1619 | p->se.last_min_vruntime = 0; | ||
1620 | 1619 | ||
1621 | #ifdef CONFIG_SCHEDSTATS | 1620 | #ifdef CONFIG_SCHEDSTATS |
1622 | p->se.wait_start = 0; | 1621 | p->se.wait_start = 0; |
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 0228de186503..62a9ee8db13e 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -480,14 +480,9 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial) | |||
480 | vruntime += __sched_vslice(cfs_rq->nr_running + 1); | 480 | vruntime += __sched_vslice(cfs_rq->nr_running + 1); |
481 | 481 | ||
482 | if (!initial) { | 482 | if (!initial) { |
483 | if (sched_feat(NEW_FAIR_SLEEPERS)) { | 483 | if (sched_feat(NEW_FAIR_SLEEPERS)) |
484 | s64 latency = cfs_rq->min_vruntime - se->vruntime; | 484 | vruntime -= sysctl_sched_latency; |
485 | if (latency < 0 || !cfs_rq->nr_running) | 485 | |
486 | latency = 0; | ||
487 | else | ||
488 | latency = min_t(s64, latency, sysctl_sched_latency); | ||
489 | vruntime -= latency; | ||
490 | } | ||
491 | vruntime = max(vruntime, se->vruntime); | 486 | vruntime = max(vruntime, se->vruntime); |
492 | } | 487 | } |
493 | 488 | ||
@@ -531,8 +526,6 @@ dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int sleep) | |||
531 | se->block_start = rq_of(cfs_rq)->clock; | 526 | se->block_start = rq_of(cfs_rq)->clock; |
532 | } | 527 | } |
533 | #endif | 528 | #endif |
534 | /* se->vruntime = entity_key(cfs_rq, se); */ | ||
535 | se->last_min_vruntime = cfs_rq->min_vruntime; | ||
536 | } | 529 | } |
537 | 530 | ||
538 | if (se != cfs_rq->curr) | 531 | if (se != cfs_rq->curr) |