Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91050
b: refs/heads/master
c: b85d066
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Apr 19, 2008
1 parent a0af4d1 commit 6513340
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 0bbd3336eee1e712a290e0dfd1a64cbbdd63a508
refs/heads/master: b85d0667268320072ccdeb07c27c25b300ab3724
7 changes: 6 additions & 1 deletion trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,14 +627,16 @@ enum {
SCHED_FEAT_START_DEBIT = 4,
SCHED_FEAT_HRTICK = 8,
SCHED_FEAT_DOUBLE_TICK = 16,
SCHED_FEAT_SYNC_WAKEUPS = 32,
};

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_HRTICK * 1 |
SCHED_FEAT_DOUBLE_TICK * 0;
SCHED_FEAT_DOUBLE_TICK * 0 |
SCHED_FEAT_SYNC_WAKEUPS * 0;

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

Expand Down Expand Up @@ -1916,6 +1918,9 @@ static int try_to_wake_up(struct task_struct *p, unsigned int state, int sync)
long old_state;
struct rq *rq;

if (!sched_feat(SYNC_WAKEUPS))
sync = 0;

smp_wmb();
rq = task_rq_lock(p, &flags);
old_state = p->state;
Expand Down

0 comments on commit 6513340

Please sign in to comment.