Commit a994018a authored by Martin Hicks's avatar Martin Hicks Committed by Tony Luck

[IA64] uncached allocator: use generic (not sn2 specific) functions

Change sn2-specific calls into generic functions.  Without this change
the uncached allocator will not work on non-sn2 platforms.
Signed-off-by: default avatarGreg Edwards <edwardsg@sgi.com>
Signed-off-by: default avatarMartin Hicks <mort@sgi.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent ff67b597
...@@ -184,7 +184,7 @@ uncached_free_page(unsigned long maddr) ...@@ -184,7 +184,7 @@ uncached_free_page(unsigned long maddr)
{ {
int node; 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); dprintk(KERN_DEBUG "uncached_free_page(%lx) on node %i\n", maddr, node);
...@@ -217,7 +217,7 @@ uncached_build_memmap(unsigned long start, unsigned long end, void *arg) ...@@ -217,7 +217,7 @@ uncached_build_memmap(unsigned long start, unsigned long end, void *arg)
memset((char *)vstart, 0, length); memset((char *)vstart, 0, length);
node = nasid_to_cnodeid(NASID_GET(start)); node = paddr_to_nid(start);
for (; vstart < vend ; vstart += PAGE_SIZE) { for (; vstart < vend ; vstart += PAGE_SIZE) {
dprintk(KERN_INFO "sticking %lx into the pool!\n", vstart); dprintk(KERN_INFO "sticking %lx into the pool!\n", vstart);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment