From: Martin Hicks <mort@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] uncached: use generic functions
Date: Wed, 31 Aug 2005 18:21:26 +0000 [thread overview]
Message-ID: <20050831182126.GN13449@localhost> (raw)
Hi Tony,
Here's a patch for the uncached allocator to make it use non-sn2
specific functions.
Its against a recent git tree.
thanks
mh
--
Martin Hicks || Silicon Graphics Inc. || mort@sgi.com
Change sn2-specific calls into generic functions. Without this change
the uncached allocator will not work on non-sn2 platforms.
Signed-off-by: Greg Edwards <edwardsg@sgi.com>
Signed-off-by: Martin Hicks <mort@sgi.com>
---
commit f69ce6dfd209052bee3d4491cd242ae6575194a9
tree dded7605c2b6aa4108384dc7c886d0dcf9ee13c7
parent 4b6fda9870f5f87068221379d935007f5ccdc61e
author Martin Hicks <mort@descartes.bork.org> Wed, 31 Aug 2005 11:49:14 -0400
committer Martin Hicks <mort@descartes.bork.org> Wed, 31 Aug 2005 11:49:14 -0400
arch/ia64/kernel/uncached.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/ia64/kernel/uncached.c b/arch/ia64/kernel/uncached.c
--- a/arch/ia64/kernel/uncached.c
+++ b/arch/ia64/kernel/uncached.c
@@ -184,7 +184,7 @@ uncached_free_page(unsigned long maddr)
{
int node;
- node = nasid_to_cnodeid(NASID_GET(maddr));
+ node = paddr_to_nid(maddr - __IA64_UNCACHED_OFFSET);
dprintk(KERN_DEBUG "uncached_free_page(%lx) on node %i\n", maddr, node);
@@ -217,7 +217,7 @@ uncached_build_memmap(unsigned long star
memset((char *)vstart, 0, length);
- node = nasid_to_cnodeid(NASID_GET(start));
+ node = paddr_to_nid(start);
for (; vstart < vend ; vstart += PAGE_SIZE) {
dprintk(KERN_INFO "sticking %lx into the pool!\n", vstart);
reply other threads:[~2005-08-31 18:21 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=20050831182126.GN13449@localhost \
--to=mort@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