]> git.hungrycats.org Git - linux/commit
[PATCH] Fix task_hot() balancing
authorIngo Molnar <mingo@redhat.com>
Tue, 5 Oct 2004 09:44:44 +0000 (02:44 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 5 Oct 2004 09:44:44 +0000 (02:44 -0700)
commit00a87a388cd7be2261d2bcc6ecc045d8681a5138
treef3415c2a5224d4bf9f1f2c0b5363651d88fa08e5
parent90b1f609a769ec5c4b4c116eeeafdee12c16bf6f
[PATCH] Fix task_hot() balancing

This fixes the integer underflow in task_hot() noticed by Kenneth W Chen
and makes use of p->last_ran to separate load-balancing timestamps (used
by task_hot()) from interactivity timestamps.  (which two interfered)

compiled, booted on x86 SMP.

Confirmed by Kenneth Chen <kenneth.w.chen@intel.com> to fix the db
transaction processing workload that showed the balancing problem.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/sched.h
kernel/sched.c