]> git.neil.brown.name Git - history.git/commitdiff
Fix CAN_MIGRATE_TASK macro to use p arg it gets
authorDavid S. Miller <davem@nuts.ninka.net>
Sun, 10 Mar 2002 23:06:35 +0000 (15:06 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Sun, 10 Mar 2002 23:06:35 +0000 (15:06 -0800)
instead of tmp explicitly.

kernel/sched.c

index 6492f3c6050eb5f6f0ff0963aff671fc461d2f81..444192bbade1719651ba4de1d494e2055582c1df 100644 (file)
@@ -591,7 +591,7 @@ skip_queue:
 #define CAN_MIGRATE_TASK(p,rq,this_cpu)                                        \
        ((jiffies - (p)->sleep_timestamp > cache_decay_ticks) &&        \
                ((p) != (rq)->curr) &&                                  \
-                       (tmp->cpus_allowed & (1 << (this_cpu))))
+                       ((p)->cpus_allowed & (1 << (this_cpu))))
 
        if (!CAN_MIGRATE_TASK(tmp, busiest, this_cpu)) {
                curr = curr->next;