patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / include / asm-i386 / cpu.h
index 8324108..d962258 100644 (file)
@@ -17,7 +17,9 @@ static inline int arch_register_cpu(int num){
        struct node *parent = NULL;
        
 #ifdef CONFIG_NUMA
-       parent = &node_devices[cpu_to_node(num)].node;
+       int node = cpu_to_node(num);
+       if (node_online(node))
+               parent = &node_devices[node].node;
 #endif /* CONFIG_NUMA */
 
        return register_cpu(&cpu_devices[num].cpu, num, parent);