summaryrefslogtreecommitdiffstats
path: root/arch/mips64/sgi-ip27
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips64/sgi-ip27')
-rw-r--r--arch/mips64/sgi-ip27/ip27-klnuma.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/mips64/sgi-ip27/ip27-klnuma.c b/arch/mips64/sgi-ip27/ip27-klnuma.c
index 84d1a5465..5891e017e 100644
--- a/arch/mips64/sgi-ip27/ip27-klnuma.c
+++ b/arch/mips64/sgi-ip27/ip27-klnuma.c
@@ -136,9 +136,7 @@ pfn_t node_getfirstfree(cnodeid_t cnode)
loadbase = CKSSEG + 16777216;
#endif
offset = PAGE_ALIGN((unsigned long)(&_end)) - loadbase;
- if (cnode == 0)
- return (offset >> PAGE_SHIFT);
- else if (CPUMASK_TSTB(ktext_repmask, cnode))
+ if ((cnode == 0) || (CPUMASK_TSTB(ktext_repmask, cnode)))
return (TO_NODE(nasid, offset) >> PAGE_SHIFT);
else
return (KDM_TO_PHYS(PAGE_ALIGN(SYMMON_STK_ADDR(nasid, 0))) >>