patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / arch / i386 / mach-default / topology.c
index e96d891..c70547a 100644 (file)
@@ -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;