public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* Patch to fix "is_headless_node()" for SN
@ 2003-11-04 20:26 Jack Steiner
  0 siblings, 0 replies; only message in thread
From: Jack Steiner @ 2003-11-04 20:26 UTC (permalink / raw)
  To: linux-ia64

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.



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

only message in thread, other threads:[~2003-11-04 20:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-04 20:26 Patch to fix "is_headless_node()" for SN Jack Steiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox