]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] sched: correct smp_nice_bias
authorCon Kolivas <kernel@kolivas.org>
Wed, 9 Nov 2005 05:38:59 +0000 (21:38 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:32 +0000 (07:56 -0800)
commit6dd4a85bb3ee0715415892c8b0f2a9bd08d31ca4
treea53890e37a81c4da1d6e6f398aaea66880d4f996
parent3b0bd9bc6f3b8a47853d1b1de4520de3878e8941
[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>
kernel/sched.c