Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91052
b: refs/heads/master
c: d25ce4c
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Apr 19, 2008
1 parent 1fb612c commit 3b0cdba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 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: 1fc8afa4c820fcde3658238eab5c010476ede521
refs/heads/master: d25ce4cd499a21aab89ff8755f8c4a2800eae25f
16 changes: 9 additions & 7 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,20 +625,22 @@ enum {
SCHED_FEAT_NEW_FAIR_SLEEPERS = 1,
SCHED_FEAT_WAKEUP_PREEMPT = 2,
SCHED_FEAT_START_DEBIT = 4,
SCHED_FEAT_HRTICK = 8,
SCHED_FEAT_DOUBLE_TICK = 16,
SCHED_FEAT_SYNC_WAKEUPS = 32,
SCHED_FEAT_AFFINE_WAKEUPS = 64,
SCHED_FEAT_AFFINE_WAKEUPS = 8,
SCHED_FEAT_CACHE_HOT_BUDDY = 16,
SCHED_FEAT_HRTICK = 32,
SCHED_FEAT_DOUBLE_TICK = 64,
SCHED_FEAT_SYNC_WAKEUPS = 128,
};

const_debug unsigned int sysctl_sched_features =
SCHED_FEAT_NEW_FAIR_SLEEPERS * 1 |
SCHED_FEAT_WAKEUP_PREEMPT * 1 |
SCHED_FEAT_START_DEBIT * 1 |
SCHED_FEAT_AFFINE_WAKEUPS * 1 |
SCHED_FEAT_CACHE_HOT_BUDDY * 1 |
SCHED_FEAT_HRTICK * 1 |
SCHED_FEAT_DOUBLE_TICK * 0 |
SCHED_FEAT_SYNC_WAKEUPS * 0 |
SCHED_FEAT_AFFINE_WAKEUPS * 1;
SCHED_FEAT_SYNC_WAKEUPS * 0;

#define sched_feat(x) (sysctl_sched_features & SCHED_FEAT_##x)

Expand Down Expand Up @@ -1519,7 +1521,7 @@ task_hot(struct task_struct *p, u64 now, struct sched_domain *sd)
/*
* Buddy candidates are cache hot:
*/
if (&p->se == cfs_rq_of(&p->se)->next)
if (sched_feat(CACHE_HOT_BUDDY) && (&p->se == cfs_rq_of(&p->se)->next))
return 1;

if (p->sched_class != &fair_sched_class)
Expand Down

0 comments on commit 3b0cdba

Please sign in to comment.