All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] is_headless_node fix
@ 2003-08-08 21:45 Jesse Barnes
  0 siblings, 0 replies; only message in thread
From: Jesse Barnes @ 2003-08-08 21:45 UTC (permalink / raw)
  To: linux-ia64

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-08 21:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-08 21:45 [PATCH] is_headless_node fix Jesse Barnes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.