summaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
authorSuresh Siddha2007-09-05 14:32:48 +0200
committerIngo Molnar2007-09-05 14:32:48 +0200
commit7fd0d2dde929ead79901e389e70dbfb3c6c06986 (patch)
tree577c4626e1e6f1de79e41deaeea6699261c873aa /kernel/sched_fair.c
parentMerge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 (diff)
downloadkernel-qcow2-linux-7fd0d2dde929ead79901e389e70dbfb3c6c06986.tar.gz
kernel-qcow2-linux-7fd0d2dde929ead79901e389e70dbfb3c6c06986.tar.xz
kernel-qcow2-linux-7fd0d2dde929ead79901e389e70dbfb3c6c06986.zip
sched: fix MC/HT scheduler optimization, without breaking the FUZZ logic.
First fix the check if (*imbalance + SCHED_LOAD_SCALE_FUZZ < busiest_load_per_task) with this if (*imbalance < busiest_load_per_task) As the current check is always false for nice 0 tasks (as SCHED_LOAD_SCALE_FUZZ is same as busiest_load_per_task for nice 0 tasks). With the above change, imbalance was getting reset to 0 in the corner case condition, making the FUZZ logic fail. Fix it by not corrupting the imbalance and change the imbalance, only when it finds that the HT/MC optimization is needed. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_fair.c')
0 files changed, 0 insertions, 0 deletions