summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-09-14 20:02:34 +0200
committerIngo Molnar <mingo@elte.hu>2009-09-15 16:51:31 +0200
commita7558e01056f5191ff2ecff53b075dcb9e484188 (patch)
tree1364bbf9273ce353f4f3146aebe567f79b7c8cad /include/linux
parent7d47872146398dbede13223299fe1cb368ebc781 (diff)
downloadlinux-3.10-a7558e01056f5191ff2ecff53b075dcb9e484188.tar.gz
linux-3.10-a7558e01056f5191ff2ecff53b075dcb9e484188.tar.bz2
linux-3.10-a7558e01056f5191ff2ecff53b075dcb9e484188.zip
sched: Add WF_FORK
Avoid the cache buddies from biasing the time distribution away from fork()ers. Normally the next buddy will be the preferred scheduling target, but this makes fork()s prefer to run the new child, whereas we prefer to run the parent, since that will generate more work. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 3b07168b6f0..ee1f8899309 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1028,6 +1028,7 @@ struct sched_domain;
* wake flags
*/
#define WF_SYNC 0x01 /* waker goes to sleep after wakup */
+#define WF_FORK 0x02 /* child wakeup after fork */
struct sched_class {
const struct sched_class *next;