ia64: remove setting for saved_max_pfn
authorZhang Yanfei <[email protected]>
Wed, 3 Jul 2013 22:08:44 +0000 (15:08 -0700)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Cc: Matt Fleming <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: Fenghua Yu <[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: Heiko Carstens <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Michael Holzheu <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Vivek Goyal <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
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