Patch to fix "is_headless_node()" for SN

From: Jack Steiner <steiner_at_sgi.com>
Date: 2003-11-05 07:26:24
The macro for determining whether a node has cpus is incorect
for SN. Here is a fix:


--- linux_base/include/asm-ia64/sn/nodepda.h	Tue Nov  4 14:23:55 2003
+++ linux/include/asm-ia64/sn/nodepda.h	Tue Nov  4 14:22:11 2003
@@ -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





-- 
Thanks

Jack Steiner (steiner@sgi.com)          651-683-5302
Principal Engineer                      SGI - Silicon Graphics, Inc.


-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Nov 4 15:31:16 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:20 EST