public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix is_headless_node() for systems w/<64p
@ 2003-10-09 16:09 Jesse Barnes
  0 siblings, 0 replies; only message in thread
From: Jesse Barnes @ 2003-10-09 16:09 UTC (permalink / raw)
  To: linux-ia64

I didn't realize that any_online_cpu() wouldn't work for
is_headless_node(), so this patch reverts the function back to using the
node_to_cpu_mask[] array, fixing sn2 for systems with less than 64p.

Thanks,
Jesse

=== include/asm-ia64/sn/nodepda.h 1.9 vs edited ==--- 1.9/include/asm-ia64/sn/nodepda.h	Tue Sep  9 04:19:45 2003
+++ edited/include/asm-ia64/sn/nodepda.h	Wed Oct  1 10:28:12 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)		(!any_online_cpu(node_to_cpumask(cnode)))
+#define is_headless_node(cnode)		(!node_to_cpu_mask[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-10-09 16:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-09 16:09 [PATCH] fix is_headless_node() for systems w/<64p Jesse Barnes

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