debuggers.hg

changeset 19980:323ae92f774b

x86: Fix an oversight of c/s 19927 - per-CPU data accesses must
not be iterated over using NR_CPUS bound loops.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jul 15 09:14:19 2009 +0100 (2009-07-15)
parents c4d78e5755a1
children d09113020033
files xen/arch/x86/smpboot.c
line diff
     1.1 --- a/xen/arch/x86/smpboot.c	Wed Jul 15 09:11:40 2009 +0100
     1.2 +++ b/xen/arch/x86/smpboot.c	Wed Jul 15 09:14:19 2009 +0100
     1.3 @@ -1163,7 +1163,7 @@ static void __init smp_boot_cpus(unsigne
     1.4  	 * construct cpu_sibling_map, so that we can tell sibling CPUs
     1.5  	 * efficiently.
     1.6  	 */
     1.7 -	for (cpu = 0; cpu < NR_CPUS; cpu++) {
     1.8 +	for_each_cpu(cpu) {
     1.9  		cpus_clear(per_cpu(cpu_sibling_map, cpu));
    1.10  		cpus_clear(per_cpu(cpu_core_map, cpu));
    1.11  	}