Commit 2b82353a authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] Don't register disabled nodes

Don't register disabled nodes.  Hits on x86-64 when there is a node with no memory.
X86-64 shares this code with i386.
parent a07b54e9
...@@ -12,9 +12,13 @@ struct i386_node { ...@@ -12,9 +12,13 @@ struct i386_node {
extern struct i386_node node_devices[MAX_NUMNODES]; extern struct i386_node node_devices[MAX_NUMNODES];
static inline int arch_register_node(int num){ static inline int arch_register_node(int num){
int p_node = parent_node(num); int p_node;
struct node *parent = NULL; struct node *parent = NULL;
if (!node_online(num))
return 0;
p_node = parent_node(num);
if (p_node != num) if (p_node != num)
parent = &node_devices[p_node].node; parent = &node_devices[p_node].node;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment