]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sched_rt: don't use first_cpu on cpumask created with cpumask_and
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 31 Jan 2009 12:51:24 +0000 (23:21 +1030)
committerIngo Molnar <mingo@elte.hu>
Sun, 1 Feb 2009 09:49:52 +0000 (10:49 +0100)
commit3d398703ef06fd97b4c28c86b580546d5b57e7b7
tree8d0d22c32d4610392af39a8184e38971554e7e5b
parenta571bbeafbcc501d9989fbce1cddcd810bd51d71
sched_rt: don't use first_cpu on cpumask created with cpumask_and

cpumask_and() only initializes nr_cpu_ids bits, so the (deprecated)
first_cpu() might find one of those uninitialized bits if nr_cpu_ids
is less than NR_CPUS (as it can be for CONFIG_CPUMASK_OFFSTACK).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_rt.c