|
|
@@ -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
|