Commit 829d1232 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] make CONFIG_HUGETLB_PAGE mirror CONFIG_HUGETLBFS

At present you can set CONFIG_HUGETLB_PAGE and not CONFIG_HUGETLBFS, which
give the kernel low-level hugepage support, but no userspace API with which
to access it.

And with the recent hugetlbfs-accounting fix, the low-level code needs
functions which are in hugetlbfs, so CONFIG_HUGETLBFS=n,
CONFIG_HUGETLB_PAGE=y doesn't even link.

So we flip things around: CONFIG_HUGETLB_PAGE is set if CONFIG_HUGETLBFS is
set and CONFIG_HUGETLB_PAGE is unset if CONFIG_HUGETLBFS is unset.  The
CONFIG_HUGETLB_PAGE option hence disappears from the per-arch configuration
menus.
parent 41cffedc
......@@ -397,17 +397,6 @@ config X86_OOSTORE
depends on MWINCHIP3D || MWINCHIP2 || MWINCHIPC6
default y
config HUGETLB_PAGE
bool "Huge TLB Page Support"
help
This enables support for huge pages. User space applications
can make use of this support with the sys_alloc_hugepages and
sys_free_hugepages system calls. If your applications are
huge page aware and your processor (Pentium or later for x86)
supports this, then say Y here.
Otherwise, say N.
config HPET_TIMER
bool "HPET Timer Support"
help
......
......@@ -304,9 +304,6 @@ config FORCE_MAX_ZONEORDER
int
default "18"
config HUGETLB_PAGE
bool "IA-64 Huge TLB Page Support"
choice
prompt "IA-64 Huge TLB Page Size"
depends on HUGETLB_PAGE
......
......@@ -72,17 +72,6 @@ config PPC64
bool
default y
config HUGETLB_PAGE
bool "Huge TLB Page Support"
help
This enables support for huge pages. User space applications
can make use of this support with the sys_alloc_hugepages and
sys_free_hugepages system calls. If your applications are
huge page aware and your processor supports this (only POWER4,
then say Y here.
Otherwise, say N.
config SMP
bool "Symmetric multi-processing support"
---help---
......
......@@ -85,16 +85,6 @@ config HW_CONSOLE
bool
default y
config HUGETLB_PAGE
bool "SPARC64 Huge TLB Page Support"
help
This enables support for huge pages. User space applications
can make use of this support with the sys_alloc_hugepages and
sys_free_hugepages system calls. If your applications are
huge page aware, then say Y here.
Otherwise, say N.
config SMP
bool "Symmetric multi-processing support"
---help---
......
......@@ -171,14 +171,6 @@ config MTRR
See <file:Documentation/mtrr.txt> for more information.
config HUGETLB_PAGE
bool "Huge TLB Page Support"
help
This enables support for huge pages. User space applications
can make use of this support with the hugetlbfs file system
To actually use it you need to pass an hugepages= argument
to the kernel at boot time.
config SMP
bool "Symmetric multi-processing support"
---help---
......
......@@ -875,7 +875,9 @@ config TMPFS
config HUGETLBFS
bool "HugeTLB file system support"
depends on HUGETLB_PAGE
config HUGETLB_PAGE
def_bool HUGETLBFS
config RAMFS
bool
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment