From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by kanga.kvack.org (Postfix) with ESMTP id 59A686B004D for ; Sat, 12 Oct 2013 17:59:35 -0400 (EDT) Received: by mail-pa0-f51.google.com with SMTP id kp14so5913694pab.24 for ; Sat, 12 Oct 2013 14:59:35 -0700 (PDT) From: Santosh Shilimkar Subject: [RFC 09/23] mm/init: Use memblock apis for early memory allocations Date: Sat, 12 Oct 2013 17:58:52 -0400 Message-ID: <1381615146-20342-10-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 --- init/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init/main.c b/init/main.c index af310af..e8d382a 100644 --- a/init/main.c +++ b/init/main.c @@ -346,8 +346,8 @@ static inline void smp_prepare_cpus(unsigned int maxcpus) { } */ static void __init setup_command_line(char *command_line) { - saved_command_line = alloc_bootmem(strlen (boot_command_line)+1); - static_command_line = alloc_bootmem(strlen (command_line)+1); + saved_command_line = memblock_early_alloc(strlen(boot_command_line)+1); + static_command_line = memblock_early_alloc(strlen(command_line)+1); strcpy (saved_command_line, boot_command_line); strcpy (static_command_line, command_line); } -- 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