[PATCH] is_headless_node fix

From: Jesse Barnes <jbarnes_at_sgi.com>
Date: 2003-08-09 07:45:26
Fix is_headless_node() macro to use node_to_cpumask().

Thanks,
Jesse

diff -Nru a/include/asm-ia64/sn/nodepda.h b/include/asm-ia64/sn/nodepda.h
--- a/include/asm-ia64/sn/nodepda.h	Fri Aug  8 14:44:53 2003
+++ b/include/asm-ia64/sn/nodepda.h	Fri Aug  8 14:44:53 2003
@@ -12,6 +12,7 @@
 #include <linux/config.h>
 #include <asm/sn/sgi.h>
 #include <asm/irq.h>
+#include <asm/topology.h>
 #include <asm/sn/intr.h>
 #include <asm/sn/router.h>
 #include <asm/sn/pda.h>
@@ -127,7 +128,7 @@
  * Check if given a compact node id the corresponding node has all the
  * cpus disabled. 
  */
-#define is_headless_node(cnode)		(!test_bit(cnode, &node_has_active_cpus))
+#define is_headless_node(cnode)		(!node_to_cpumask(cnode))
 
 /*
  * Check if given a node vertex handle the corresponding node has all the
-
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 Fri Aug 8 17:46:20 2003

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