diff options
author | Vladimir Murzin <vladimir.murzin@arm.com> | 2017-09-04 09:17:48 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2017-09-28 11:13:04 +0100 |
commit | 0d9ac1625ac1041742c72c3b680198f0304539b2 (patch) | |
tree | f67ea6a512ed5a59a627b40fdfa8e448e2715b16 /arch/arm | |
parent | 6022f80da0d9d42e02e78f3fb42930ee86f3e7af (diff) | |
download | linux-stable-0d9ac1625ac1041742c72c3b680198f0304539b2.tar.gz linux-stable-0d9ac1625ac1041742c72c3b680198f0304539b2.tar.bz2 linux-stable-0d9ac1625ac1041742c72c3b680198f0304539b2.zip |
ARM: 8696/1: mm: Remove dead code in mem_init()
The code in question checks memory constrains to set default policy for
overcommit; however we support page size of 4K only thus condition is
always evaluated to false. Remove that dead code.
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mm/init.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index ad80548325fe..81d4482b6861 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -580,16 +580,6 @@ void __init mem_init(void) BUILD_BUG_ON(PKMAP_BASE + LAST_PKMAP * PAGE_SIZE > PAGE_OFFSET); BUG_ON(PKMAP_BASE + LAST_PKMAP * PAGE_SIZE > PAGE_OFFSET); #endif - - if (PAGE_SIZE >= 16384 && get_num_physpages() <= 128) { - extern int sysctl_overcommit_memory; - /* - * On a machine this small we won't get - * anywhere without overcommit, so turn - * it on by default. - */ - sysctl_overcommit_memory = OVERCOMMIT_ALWAYS; - } } #ifdef CONFIG_STRICT_KERNEL_RWX |