From: Jack Steiner <steiner@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Patch to fix "is_headless_node()" for SN
Date: Tue, 04 Nov 2003 20:26:24 +0000 [thread overview]
Message-ID: <marc-linux-ia64-106797787702028@msgid-missing> (raw)
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.
reply other threads:[~2003-11-04 20:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-ia64-106797787702028@msgid-missing \
--to=steiner@sgi.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox