ia64: remove setting for saved_max_pfn
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Wed, 3 Jul 2013 22:08:44 +0000 (15:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:08:04 +0000 (16:08 -0700)
The only user of saved_max_pfn in ia64 is read_oldmem interface but we
have removed that interface, so saved_max_pfn is now unneeded in ia64, and
we needn't set it anymore.

Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Matt Fleming <matt.fleming@intel.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Dave Hansen <dave@sr71.net>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/ia64/kernel/efi.c

index f034563aeae547c44b0e3a2a99b4ab535917cee1..51bce594eb83582daac87f3853235db70bce3b85 100644 (file)
@@ -1116,11 +1116,6 @@ efi_memmap_init(u64 *s, u64 *e)
                if (!is_memory_available(md))
                        continue;
 
-#ifdef CONFIG_CRASH_DUMP
-               /* saved_max_pfn should ignore max_addr= command line arg */
-               if (saved_max_pfn < (efi_md_end(md) >> PAGE_SHIFT))
-                       saved_max_pfn = (efi_md_end(md) >> PAGE_SHIFT);
-#endif
                /*
                 * Round ends inward to granule boundaries
                 * Give trimmings to uncached allocator