x86: Fix an oversight of c/s 19927 - per-CPU data accesses must
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 15 Jul 2009 08:14:19 +0000 (09:14 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 15 Jul 2009 08:14:19 +0000 (09:14 +0100)
not be iterated over using NR_CPUS bound loops.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/smpboot.c

index 5a18b9be1af10a0d9db8c2c319ab2ea3805a3d84..203c3682f67f1aa935d68012140e4f5f285e4d8d 100644 (file)
@@ -1163,7 +1163,7 @@ static void __init smp_boot_cpus(unsigned int max_cpus)
         * construct cpu_sibling_map, so that we can tell sibling CPUs
         * efficiently.
         */
-       for (cpu = 0; cpu < NR_CPUS; cpu++) {
+       for_each_cpu(cpu) {
                cpus_clear(per_cpu(cpu_sibling_map, cpu));
                cpus_clear(per_cpu(cpu_core_map, cpu));
        }