]> git.hungrycats.org Git - linux/commitdiff
[PATCH] large cpumask fix
authorAnton Blanchard <anton@samba.org>
Wed, 14 Apr 2004 04:09:46 +0000 (21:09 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 14 Apr 2004 04:09:46 +0000 (21:09 -0700)
The RCU code was missing cpus_empty() in one place, required with large
cpumasks.

kernel/rcupdate.c

index bac2bfefb3ce2434c3539ef6461ebad247e3c6a8..0745d988e2118e0bee9ee235f567196f3541bce9 100644 (file)
@@ -182,7 +182,7 @@ static void rcu_offline_cpu(int cpu)
         * it here
         */
        spin_lock_irq(&rcu_ctrlblk.mutex);
-       if (!rcu_ctrlblk.rcu_cpu_mask)
+       if (cpus_empty(rcu_ctrlblk.rcu_cpu_mask))
                goto unlock;
 
        cpu_clear(cpu, rcu_ctrlblk.rcu_cpu_mask);