Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269132
b: refs/heads/master
c: 2c2efae
h: refs/heads/master
v: v3
  • Loading branch information
Yong Zhang authored and Ingo Molnar committed Aug 14, 2011
1 parent 62078f0 commit 8def7c6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e2b245f89ee3f5b03fb42d843a79a58cf4773181
refs/heads/master: 2c2efaed9bc973e3aeab1385c618017b56c8f6d7
9 changes: 1 addition & 8 deletions trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -1095,9 +1095,6 @@ check_preempt_tick(struct cfs_rq *cfs_rq, struct sched_entity *curr)
* narrow margin doesn't have to wait for a full slice.
* This also mitigates buddy induced latencies under load.
*/
if (!sched_feat(WAKEUP_PREEMPT))
return;

if (delta_exec < sysctl_sched_min_granularity)
return;

Expand Down Expand Up @@ -1233,7 +1230,7 @@ entity_tick(struct cfs_rq *cfs_rq, struct sched_entity *curr, int queued)
return;
#endif

if (cfs_rq->nr_running > 1 || !sched_feat(WAKEUP_PREEMPT))
if (cfs_rq->nr_running > 1)
check_preempt_tick(cfs_rq, curr);
}

Expand Down Expand Up @@ -1899,10 +1896,6 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int wake_
if (unlikely(p->policy != SCHED_NORMAL))
return;


if (!sched_feat(WAKEUP_PREEMPT))
return;

find_matching_se(&se, &pse);
update_curr(cfs_rq_of(se));
BUG_ON(!pse);
Expand Down
5 changes: 0 additions & 5 deletions trunk/kernel/sched_features.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ SCHED_FEAT(GENTLE_FAIR_SLEEPERS, 1)
*/
SCHED_FEAT(START_DEBIT, 1)

/*
* Should wakeups try to preempt running tasks.
*/
SCHED_FEAT(WAKEUP_PREEMPT, 1)

/*
* Based on load and program behaviour, see if it makes sense to place
* a newly woken task on the same cpu as the task that woke it --
Expand Down

0 comments on commit 8def7c6

Please sign in to comment.