thp: add x86 32bit support

Add support for transparent hugepages to x86 32bit.

Share the same VM_ bitflag for VM_MAPPED_COPY.  mm/nommu.c will never
support transparent hugepages.

Signed-off-by: Johannes Weiner <[email protected]>
Signed-off-by: Andrea Arcangeli <[email protected]>
Reviewed-by: Rik van Riel <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Johannes Weiner 2011-01-13 15:47:01 -08:00 • committed by Linus Torvalds
commit f2d6bfe9ff
7 changed files with 156 additions and 115 deletions

View file

@ -304,7 +304,7 @@ config NOMMU_INITIAL_TRIM_EXCESS
config TRANSPARENT_HUGEPAGE
bool "Transparent Hugepage Support" if EMBEDDED
depends on X86_64 && MMU
depends on X86 && MMU
default y
help
Transparent Hugepages allows the kernel to use huge pages and