]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
x86-64: remove dead debugging code for !pse setups
authorJohannes Weiner <hannes@cmpxchg.org>
Tue, 26 Mar 2013 23:24:43 +0000 (10:24 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:17 +0000 (17:12 +1100)
No need to maintain addr_end and p_end when they are never actually read
anywhere on !pse setups.  Remove the dead code.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Bernhard Schmidt <Bernhard.Schmidt@lrz.de>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/mm/init_64.c

index 5bd71c14726080887a765b535e5d5b1a68263dff..bc65a0792172880f47a23b0a8eb5b8d868a26d73 100644 (file)
@@ -1311,9 +1311,6 @@ int __meminit vmemmap_populate(unsigned long start, unsigned long end, int node)
 
                        if (!p)
                                return -ENOMEM;
-
-                       addr_end = addr + PAGE_SIZE;
-                       p_end = p + PAGE_SIZE;
                } else {
                        next = pmd_addr_end(addr, end);