Commit 0e777a64 authored by Jack Steiner's avatar Jack Steiner Committed by David Mosberger

[PATCH] ia64: fix is_headless_node() for SN

Without this patch, SN machines which have nodes that contain memory only (no
CPUs will hang.
parent 25e6bed8
...@@ -128,7 +128,7 @@ typedef struct irqpda_s irqpda_t; ...@@ -128,7 +128,7 @@ typedef struct irqpda_s irqpda_t;
* Check if given a compact node id the corresponding node has all the * Check if given a compact node id the corresponding node has all the
* cpus disabled. * cpus disabled.
*/ */
#define is_headless_node(cnode) (!node_to_cpu_mask[cnode]) #define is_headless_node(cnode) (nr_cpus_node(cnode) == 0)
/* /*
* Check if given a node vertex handle the corresponding node has all the * Check if given a node vertex handle the corresponding node has all the
......
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