[PATCH] Cleanup bootmem allocator and fix alloc_bootmem_low
[powerpc.git] / lib / swiotlb.c
index 1ff8dce..3b48205 100644 (file)
@@ -142,8 +142,7 @@ swiotlb_init_with_default_size (size_t default_size)
        /*
         * Get IO TLB memory from the low pages
         */
-       io_tlb_start = alloc_bootmem_low_pages_limit(io_tlb_nslabs *
-                                            (1 << IO_TLB_SHIFT), 0x100000000);
+       io_tlb_start = alloc_bootmem_low_pages(io_tlb_nslabs * (1 << IO_TLB_SHIFT));
        if (!io_tlb_start)
                panic("Cannot allocate SWIOTLB buffer");
        io_tlb_end = io_tlb_start + io_tlb_nslabs * (1 << IO_TLB_SHIFT);