patch-2.1.132 linux/arch/arm/mm/init.c

Next file: linux/arch/arm/mm/mm-ebsa285.c
Previous file: linux/arch/arm/mm/fault-armv.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.131/linux/arch/arm/mm/init.c linux/arch/arm/mm/init.c
@@ -192,6 +192,15 @@
 		 reservedpages << (PAGE_SHIFT-10),
 		 datapages << (PAGE_SHIFT-10),
 		 initpages << (PAGE_SHIFT-10));
+
+#ifdef CONFIG_CPU_26
+	if (max_mapnr <= 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 = 1;
+	}
+#endif
 }
 
 void free_initmem (void)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov