]> git.hungrycats.org Git - linux/commit
[PATCH] CPU scheduler CAN_MIGRATE fix
authorAndrew Morton <akpm@osdl.org>
Tue, 9 Sep 2003 17:21:46 +0000 (10:21 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 9 Sep 2003 17:21:46 +0000 (10:21 -0700)
commit9e3a8956b8984544013b653778adc12b9a4871ab
tree9ee3a69b895ee14ee94baf02224b27f0e4f5abc1
parentdd3f51c2d7bef89afed21a5453d38b5a8536088c
[PATCH] CPU scheduler CAN_MIGRATE fix

From: Andrew Theurer <habanero@us.ibm.com>

This change:
http://linux.bkbits.net:8080/linux-2.5/diffs/kernel/sched.c@1.202

does not seem to make sense:

#define CAN_MIGRATE_TASK(p,rq,this_cpu) \
((!idle || (jiffies - (p)->last_run > cache_decay_ticks)) &&    \
!task_running(rq, p) && \
cpu_isset(this_cpu, (p)->cpus_allowed))

It should be just the opposite; an idle cpu should be able to have a more
aggressive steal, and a busy cpu should not.
kernel/sched.c