Skip to content

Commit a994018

Browse files
Martin Hicksaegl
authored andcommitted
[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: Greg Edwards <edwardsg@sgi.com> Signed-off-by: Martin Hicks <mort@sgi.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
1 parent ff67b59 commit a994018

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/ia64/kernel/uncached.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ uncached_free_page(unsigned long maddr)
184184
{
185185
int node;
186186

187-
node = nasid_to_cnodeid(NASID_GET(maddr));
187+
node = paddr_to_nid(maddr - __IA64_UNCACHED_OFFSET);
188188

189189
dprintk(KERN_DEBUG "uncached_free_page(%lx) on node %i\n", maddr, node);
190190

@@ -217,7 +217,7 @@ uncached_build_memmap(unsigned long start, unsigned long end, void *arg)
217217

218218
memset((char *)vstart, 0, length);
219219

220-
node = nasid_to_cnodeid(NASID_GET(start));
220+
node = paddr_to_nid(start);
221221

222222
for (; vstart < vend ; vstart += PAGE_SIZE) {
223223
dprintk(KERN_INFO "sticking %lx into the pool!\n", vstart);

0 commit comments

Comments
 (0)