From: David Howells Date: Tue, 3 Oct 2006 08:13:47 +0000 (-0700) Subject: [PATCH] FRV: Permit large kmalloc allocations [try #2] X-Git-Tag: v2.6.19-rc1~363 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=339b0c0813a257893fa84be999b9b85a50846dd8;p=linux-2.6 [PATCH] FRV: Permit large kmalloc allocations [try #2] Permit kmalloc() to make allocations of up to 32MB if so configured. This may be useful under NOMMU conditions where vmalloc() can't do this. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/frv/Kconfig b/arch/frv/Kconfig index f7b171b92e..cf1c446e00 100644 --- a/arch/frv/Kconfig +++ b/arch/frv/Kconfig @@ -86,6 +86,14 @@ config HIGHPTE with a lot of RAM, this can be wasteful of precious low memory. Setting this option will put user-space page tables in high memory. +config LARGE_ALLOCS + bool "Allow allocating large blocks (> 1MB) of memory" + help + Allow the slab memory allocator to keep chains for very large memory + sizes - up to 32MB. You may need this if your system has a lot of + RAM, and you need to able to allocate very large contiguous chunks. + If unsure, say N. + source "mm/Kconfig" choice