projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64a7857
)
x86: Fix an oversight of c/s 19927 - per-CPU data accesses must
author
Keir Fraser
<keir.fraser@citrix.com>
Wed, 15 Jul 2009 08:14:19 +0000
(09:14 +0100)
committer
Keir 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
patch
|
blob
|
history
diff --git
a/xen/arch/x86/smpboot.c
b/xen/arch/x86/smpboot.c
index 5a18b9be1af10a0d9db8c2c319ab2ea3805a3d84..203c3682f67f1aa935d68012140e4f5f285e4d8d 100644
(file)
--- a/
xen/arch/x86/smpboot.c
+++ b/
xen/arch/x86/smpboot.c
@@
-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));
}