Skip to content

Commit

Permalink
mips: remove savemaxmem parameter setup
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Fenghua Yu <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Matt Fleming <[email protected]>
Cc: Michael Holzheu <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: Vivek Goyal <[email protected]>

Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Zhang Yanfei authored and torvalds committed Jul 3, 2013
1 parent 987bf6f commit db9ab97
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions arch/mips/kernel/crash_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,6 @@
#include <asm/uaccess.h>
#include <linux/slab.h>

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;

/**
Expand Down

0 comments on commit db9ab97

Please sign in to comment.