From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pa0-f44.google.com ([209.85.220.44]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UgUdQ-0001Zm-4U for kexec@lists.infradead.org; Sun, 26 May 2013 06:40:52 +0000 Received: by mail-pa0-f44.google.com with SMTP id wp1so3171064pac.3 for ; Sat, 25 May 2013 23:40:29 -0700 (PDT) Message-ID: <51A1AE52.1030105@gmail.com> Date: Sun, 26 May 2013 14:40:18 +0800 From: Zhang Yanfei MIME-Version: 1.0 Subject: [PATCH v2 4/7] mips: Remove savemaxmem parameter setup References: <51A1AC4A.60506@gmail.com> In-Reply-To: <51A1AC4A.60506@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=twosheds.infradead.org@lists.infradead.org To: "Eric W. Biederman" , Vivek Goyal , Andrew Morton , Ralf Baechle , Simon Horman Cc: "kexec@lists.infradead.org" , "linux-kernel@vger.kernel.org" From: Zhang Yanfei saved_max_pfn is used to know the amount of memory that the previous kernel used. And for powerpc, we set saved_max_pfn by passing the kernel commandline parameter "savemaxmem=". The only user of saved_max_pfn in mips is read_oldmem interface. Since we have removed read_oldmem, so we don't need this parameter anymore. Signed-off-by: Zhang Yanfei Acked-by: "Eric W. Biederman" Cc: Ralf Baechle --- arch/mips/kernel/crash_dump.c | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/arch/mips/kernel/crash_dump.c b/arch/mips/kernel/crash_dump.c index 3be9e7b..f291cf9 100644 --- a/arch/mips/kernel/crash_dump.c +++ b/arch/mips/kernel/crash_dump.c @@ -4,16 +4,6 @@ #include #include -static int __init parse_savemaxmem(char *p) -{ - if (p) - saved_max_pfn = (memparse(p, &p) >> PAGE_SHIFT) - 1; - - return 1; -} -__setup("savemaxmem=", parse_savemaxmem); - - static void *kdump_buf_page; /** -- 1.7.1 _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759076Ab3EZGka (ORCPT ); Sun, 26 May 2013 02:40:30 -0400 Received: from mail-pb0-f54.google.com ([209.85.160.54]:34332 "EHLO mail-pb0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756740Ab3EZGk3 (ORCPT ); Sun, 26 May 2013 02:40:29 -0400 Message-ID: <51A1AE52.1030105@gmail.com> Date: Sun, 26 May 2013 14:40:18 +0800 From: Zhang Yanfei User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120607 Thunderbird/10.0.5 MIME-Version: 1.0 To: "Eric W. Biederman" , Vivek Goyal , Andrew Morton , Ralf Baechle , Simon Horman CC: "linux-kernel@vger.kernel.org" , "kexec@lists.infradead.org" Subject: [PATCH v2 4/7] mips: Remove savemaxmem parameter setup References: <51A1AC4A.60506@gmail.com> In-Reply-To: <51A1AC4A.60506@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhang Yanfei saved_max_pfn is used to know the amount of memory that the previous kernel used. And for powerpc, we set saved_max_pfn by passing the kernel commandline parameter "savemaxmem=". The only user of saved_max_pfn in mips is read_oldmem interface. Since we have removed read_oldmem, so we don't need this parameter anymore. Signed-off-by: Zhang Yanfei Acked-by: "Eric W. Biederman" Cc: Ralf Baechle --- arch/mips/kernel/crash_dump.c | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/arch/mips/kernel/crash_dump.c b/arch/mips/kernel/crash_dump.c index 3be9e7b..f291cf9 100644 --- a/arch/mips/kernel/crash_dump.c +++ b/arch/mips/kernel/crash_dump.c @@ -4,16 +4,6 @@ #include #include -static int __init parse_savemaxmem(char *p) -{ - if (p) - saved_max_pfn = (memparse(p, &p) >> PAGE_SHIFT) - 1; - - return 1; -} -__setup("savemaxmem=", parse_savemaxmem); - - static void *kdump_buf_page; /** -- 1.7.1