]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
s390: remove setting for saved_max_pfn
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Wed, 19 Jun 2013 00:08:25 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:43 +0000 (17:27 +1000)
The only user of saved_max_pfn in s390 is read_oldmem interface but we
have removed that interface, so saved_max_pfn is now unneeded in s390, and
we needn't set it anymore.

Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Michael Holzheu <holzheu@linux.vnet.ibm.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: Fenghua Yu <fenghua.yu@intel.com>
Cc: Matt Fleming <matt.fleming@intel.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/s390/kernel/setup.c

index 0a49095104c910f238cd9b28a9c79cf7a9958efc..497451ec5e267f3be025b9b719cf4f2278262d97 100644 (file)
@@ -719,10 +719,6 @@ static void reserve_oldmem(void)
        }
        create_mem_hole(memory_chunk, OLDMEM_BASE, OLDMEM_SIZE);
        create_mem_hole(memory_chunk, OLDMEM_SIZE, real_size - OLDMEM_SIZE);
-       if (OLDMEM_BASE + OLDMEM_SIZE == real_size)
-               saved_max_pfn = PFN_DOWN(OLDMEM_BASE) - 1;
-       else
-               saved_max_pfn = PFN_DOWN(real_size) - 1;
 #endif
 }