sched: Implement a gentler fair-sleepers feature
authorIngo Molnar <mingo@elte.hu>
Wed, 16 Sep 2009 06:54:45 +0000 (08:54 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 16 Sep 2009 07:05:20 +0000 (09:05 +0200)
commit51e0304ce6e55a6e59658558916b4f74da085ff0
treeda17f8f9f1b3b0431cd0cd1e90ea95f970654f9f
parent59abf02644c45f1591e1374ee7bb45dc757fcb88
sched: Implement a gentler fair-sleepers feature

Add back FAIR_SLEEPERS and GENTLE_FAIR_SLEEPERS.

FAIR_SLEEPERS is the old logic: credit sleepers with their sleep time.

GENTLE_FAIR_SLEEPERS dampens this a bit: 50% of their sleep time gets
credited.

The hope here is to still give the benefits of fair-sleepers logic
(quick wakeups, etc.) while not allow them to have 100% of their
sleep time as if they were running.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c
kernel/sched_features.h