|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-changelog
[Xen-changelog] [xen-unstable] x86: Fix an oversight of c/s 19927 -	per-
 
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1247645659 -3600
# Node ID 323ae92f774bb0f8672ad6634a8e488de5ce05de
# Parent  c4d78e5755a1825ff6b0bb6d5d25ed6ba9175883
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@xxxxxxxxxx>
---
 xen/arch/x86/smpboot.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
diff -r c4d78e5755a1 -r 323ae92f774b xen/arch/x86/smpboot.c
--- a/xen/arch/x86/smpboot.c    Wed Jul 15 09:11:40 2009 +0100
+++ b/xen/arch/x86/smpboot.c    Wed Jul 15 09:14:19 2009 +0100
@@ -1163,7 +1163,7 @@ static void __init smp_boot_cpus(unsigne
         * 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));
        }
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread> |  
- [Xen-changelog] [xen-unstable] x86: Fix an oversight of c/s 19927 -	per-CPU data accesses must,
Xen patchbot-unstable <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |