]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ia64: fix is_headless_node() for SN
authorJack Steiner <steiner@sgi.com>
Tue, 11 Nov 2003 06:35:29 +0000 (22:35 -0800)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Tue, 11 Nov 2003 06:35:29 +0000 (22:35 -0800)
Without this patch, SN machines which have nodes that contain memory only (no
CPUs will hang.

include/asm-ia64/sn/nodepda.h

index a21a48b0190fa302da758d534b4d67019b3fe424..b8ecb51db321ce7c5aaec07ca1d69ea5432ef4e1 100644 (file)
@@ -128,7 +128,7 @@ typedef struct irqpda_s irqpda_t;
  * Check if given a compact node id the corresponding node has all the
  * 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