Messages in this thread Patch in this message | | | Date | Thu, 8 Apr 2004 12:50:01 -0700 | From | Paul Jackson <> | Subject | Patch 15/23 - Bitmaps, Cpumasks and Nodemasks |
| |
P15.cpumask_sched_refine- Cpumask code clarification in kernel/sched.c Clarify and slightly optimize set_cpus_allowed() cpumask check
Index: 2.6.5.bitmap/kernel/sched.c =================================================================== --- 2.6.5.bitmap.orig/kernel/sched.c 2004-04-08 09:39:29.000000000 -0700 +++ 2.6.5.bitmap/kernel/sched.c 2004-04-08 09:40:08.000000000 -0700 @@ -2722,7 +2722,7 @@ runqueue_t *rq; rq = task_rq_lock(p, &flags); - if (any_online_cpu(new_mask) == NR_CPUS) { + if (!cpus_intersects(new_mask, cpu_online_map)) { ret = -EINVAL; goto out; }
-- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson <pj@sgi.com> 1.650.933.1373 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |