mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
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>
This commit is contained in:
parent
6022f80da0
commit
0d9ac1625a
1 changed files with 0 additions and 10 deletions
|
@ -580,16 +580,6 @@ void __init mem_init(void)
|
||||||
BUILD_BUG_ON(PKMAP_BASE + LAST_PKMAP * PAGE_SIZE > PAGE_OFFSET);
|
BUILD_BUG_ON(PKMAP_BASE + LAST_PKMAP * PAGE_SIZE > PAGE_OFFSET);
|
||||||
BUG_ON(PKMAP_BASE + LAST_PKMAP * PAGE_SIZE > PAGE_OFFSET);
|
BUG_ON(PKMAP_BASE + LAST_PKMAP * PAGE_SIZE > PAGE_OFFSET);
|
||||||
#endif
|
#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
|
#ifdef CONFIG_STRICT_KERNEL_RWX
|
||||||
|
|
Loading…
Reference in a new issue