]> git.hungrycats.org Git - linux/commit
Make the "interactive bonus" work both ways - both the process
authorLinus Torvalds <torvalds@home.transmeta.com>
Thu, 6 Mar 2003 04:59:29 +0000 (20:59 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 6 Mar 2003 04:59:29 +0000 (20:59 -0800)
commit0da6b7464fd04927ac7ea2407114e04305307b42
tree8eb383ab44cc4ebe25410fc86dffb7b00a86e0ad
parente2349697e63b1ff7e27c10c22e480b528cf2e8b3
Make the "interactive bonus" work both ways - both the process
that is actually showing interactive behaviour (sleeping) and the
process that wakes up the interative process get a bonus.

This means that processes that help interactive processes (usually
system daemons, and X11 in particular) will themselves get some bonus.

The waker only gets whatever is left over from the "real" interactive
user, to avoid any bad behaviour.
kernel/sched.c