diff options
author | Con Kolivas <kernel@kolivas.org> | 2005-11-09 00:38:59 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 10:56:32 -0500 |
commit | 6dd4a85bb3ee0715415892c8b0f2a9bd08d31ca4 (patch) | |
tree | a53890e37a81c4da1d6e6f398aaea66880d4f996 /net/decnet | |
parent | 3b0bd9bc6f3b8a47853d1b1de4520de3878e8941 (diff) |
[PATCH] sched: correct smp_nice_bias
The priority biasing was off by mutliplying the total load by the total
priority bias and this ruins the ratio of loads between runqueues. This
patch should correct the ratios of loads between runqueues to be proportional
to overall load. -2nd attempt.
From: Dave Kleikamp <shaggy@austin.ibm.com>
This patch fixes a divide-by-zero error that I hit on a two-way i386
machine. rq->nr_running is tested to be non-zero, but may change by the
time it is used in the division. Saving the value to a local variable
ensures that the same value that is checked is used in the division.
Signed-off-by: Con Kolivas <kernel@kolivas.org>
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'net/decnet')
0 files changed, 0 insertions, 0 deletions