mask ADT: clarify kernel/sched.c set_cpus_allowed cpumask [21/22]
PATCH 1/1 mask ADT: clarify kernel/sched.c set_cpus_allowed cpumask [21/22]
Patch_21_of_22 - Cpumask code clarification in kernel/sched.c
Clarify and slightly optimize set_cpus_allowed() cpumask check
diffstat Patch_21_of_22:
sched.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.1727 -> 1.1728
# kernel/sched.c 1.248 -> 1.249
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 04/03/29 [email protected] 1.1728
# Clarify and slightly optimize set_cpus_allowed() cpumask check. # --------------------------------------------
#
kernel/sched.c +1 -1
@@ -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; }
Signature · 3 lines
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <[email protected]> 1.650.933.1373