git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
patch-2_6_7-vs1_9_1_12
[linux-2.6.git]
/
arch
/
i386
/
mach-default
/
topology.c
diff --git
a/arch/i386/mach-default/topology.c
b/arch/i386/mach-default/topology.c
index
e96d891
..
c70547a
100644
(file)
--- a/
arch/i386/mach-default/topology.c
+++ b/
arch/i386/mach-default/topology.c
@@
-41,8
+41,10
@@
static int __init topology_init(void)
{
int i;
- for (i = 0; i < num_online_nodes(); i++)
- arch_register_node(i);
+ for (i = 0; i < MAX_NUMNODES; i++) {
+ if (node_online(i))
+ arch_register_node(i);
+ }
for (i = 0; i < NR_CPUS; i++)
if (cpu_possible(i)) arch_register_cpu(i);
return 0;