sched: Add WF_FORK
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 14 Sep 2009 18:02:34 +0000 (20:02 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 15 Sep 2009 14:51:31 +0000 (16:51 +0200)
commita7558e01056f5191ff2ecff53b075dcb9e484188
tree1364bbf9273ce353f4f3146aebe567f79b7c8cad
parent7d47872146398dbede13223299fe1cb368ebc781
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>
include/linux/sched.h
kernel/sched.c
kernel/sched_fair.c