From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) by kanga.kvack.org (Postfix) with ESMTP id 7A2F86B0074 for ; Sat, 12 Oct 2013 17:59:50 -0400 (EDT) Received: by mail-pd0-f176.google.com with SMTP id q10so5751684pdj.21 for ; Sat, 12 Oct 2013 14:59:50 -0700 (PDT) From: Santosh Shilimkar Subject: [RFC 22/23] mm/ARM: mm: Use memblock apis for early memory allocations Date: Sat, 12 Oct 2013 17:59:05 -0400 Message-ID: <1381615146-20342-23-git-send-email-santosh.shilimkar@ti.com> In-Reply-To: <1381615146-20342-1-git-send-email-santosh.shilimkar@ti.com> References: <1381615146-20342-1-git-send-email-santosh.shilimkar@ti.com> MIME-Version: 1.0 Content-Type: text/plain Sender: owner-linux-mm@kvack.org List-ID: To: tj@kernel.org, yinghai@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, grygorii.strashko@ti.com, Santosh Shilimkar , Andrew Morton Switch to memblock interfaces for early memory allocator Cc: Yinghai Lu Cc: Tejun Heo Cc: Andrew Morton Signed-off-by: Santosh Shilimkar --- arch/arm/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index cef338d..091e2c9 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -414,7 +414,7 @@ free_memmap(unsigned long start_pfn, unsigned long end_pfn) * free the section of the memmap array. */ if (pg < pgend) - free_bootmem(pg, pgend - pg); + memblock_free_early(pg, pgend - pg); } /* -- 1.7.9.5 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org