Skip to contentSkip to conversation

Patch to fix "is_headless_node()" for SN

PATCH Jack Steiner 1 participant 1 message Nov 4, 2003

lore
Share & tools
lore
#0 lore raw

The macro for determining whether a node has cpus is incorect for SN. Here is a fix:

include/asm-ia64/sn/nodepda.h +1 -1
@@ -128,7 +128,7 @@
  * 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
Signature · 4 lines
Thanks

Jack Steiner ([email protected])          651-683-5302
Principal Engineer                      SGI - Silicon Graphics, Inc.