Messages in this thread Patch in this message | | | Date | Thu, 1 Apr 2004 13:13:12 -0800 | From | Paul Jackson <> | Subject | [Patch 23/23] mask v2 - Cpumask tweak in kernel/sched.c |
| |
Patch_23_of_23 - Cpumask code clarification in kernel/sched.c Clarify and slightly optimize set_cpus_allowed() cpumask check
Diffstat Patch_23_of_23: sched.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/kernel/sched.c b/kernel/sched.c --- a/kernel/sched.c Mon Mar 29 01:04:08 2004 +++ b/kernel/sched.c Mon Mar 29 01:04:08 2004 @@ -2708,7 +2708,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/
| |