]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/mm/numa.c
powerpc: Always trim numa memory to lmb_end_of_DRAM()
[linux-2.6-omap-h63xx.git] / arch / powerpc / mm / numa.c
index 195bfcd08959a4eac2dd9f2ebc2a7e8aa8e9d09c..eb505ad34a857421b2deb85bbedd7b4c6ba99777 100644 (file)
@@ -528,12 +528,10 @@ static unsigned long __init numa_enforce_memory_limit(unsigned long start,
        /*
         * We use lmb_end_of_DRAM() in here instead of memory_limit because
         * we've already adjusted it for the limit and it takes care of
-        * having memory holes below the limit.
+        * having memory holes below the limit.  Also, in the case of
+        * iommu_is_off, memory_limit is not set but is implicitly enforced.
         */
 
-       if (! memory_limit)
-               return size;
-
        if (start + size <= lmb_end_of_DRAM())
                return size;