Skip to content

Commit

Permalink
[IA64] uncached allocator: use generic (not sn2 specific) functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Martin Hicks authored and Tony Luck committed Aug 31, 2005
1 parent ff67b59 commit a994018
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/ia64/kernel/uncached.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

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

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);
Expand Down

0 comments on commit a994018

Please sign in to comment.