[PATCH][2.6-mm] CPU hotplug, rcupdate high NR_CPUS fix
From: Zwane Mwaikambo
Date: Mon Feb 16 2004 - 18:09:45 EST
Small fix for NR_CPUS > BITS_PER_LONG
Index: linux-2.6.3-rc3-mm1/kernel/rcupdate.c
===================================================================
RCS file: /home/cvsroot/linux-2.6.3-rc3-mm1/kernel/rcupdate.c,v
retrieving revision 1.1.1.1
diff -u -p -B -r1.1.1.1 rcupdate.c
--- linux-2.6.3-rc3-mm1/kernel/rcupdate.c 16 Feb 2004 20:42:49 -0000 1.1.1.1
+++ linux-2.6.3-rc3-mm1/kernel/rcupdate.c 16 Feb 2004 22:47:25 -0000
@@ -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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/