diff options
author | Con Kolivas | 2005-11-08 21:38:59 -0800 |
---|---|---|
committer | Linus Torvalds | 2005-11-09 07:56:32 -0800 |
commit | 6dd4a85bb3ee0715415892c8b0f2a9bd08d31ca4 (patch) | |
tree | a53890e37a81c4da1d6e6f398aaea66880d4f996 /fs/hugetlbfs | |
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 'fs/hugetlbfs')
0 files changed, 0 insertions, 0 deletions