Merge branch 'linux-next' of git://git.infradead.org/ubi-2.6
[pandora-kernel.git] / mm / Kconfig.debug
index c8d62d4..bb01e29 100644 (file)
@@ -1,3 +1,12 @@
+config DEBUG_PAGEALLOC
+       bool "Debug page memory allocations"
+       depends on DEBUG_KERNEL && ARCH_SUPPORTS_DEBUG_PAGEALLOC
+       depends on !HIBERNATION || !PPC && !SPARC
+       ---help---
+         Unmap pages from the kernel linear mapping after free_pages().
+         This results in a large slowdown, but helps to find certain types
+         of memory corruptions.
+
 config WANT_PAGE_DEBUG_FLAGS
        bool