]> git.hungrycats.org Git - linux/commitdiff
[PATCH] make CONFIG_HUGETLB_PAGE mirror CONFIG_HUGETLBFS
authorAndrew Morton <akpm@osdl.org>
Tue, 23 Sep 2003 16:43:54 +0000 (09:43 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 23 Sep 2003 16:43:54 +0000 (09:43 -0700)
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.

arch/i386/Kconfig
arch/ia64/Kconfig
arch/ppc64/Kconfig
arch/sparc64/Kconfig
arch/x86_64/Kconfig
fs/Kconfig

index f337b2d31815bd65116f405dbcba0d43396b5221..75bebed782c2b6cc52d31162aa8444a04a4db4c7 100644 (file)
@@ -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
index ffef70740670e2b96d01e6fb18f11b410fd5240c..2c432cea4f7d4b3a14614118951e7e5e760dc0f0 100644 (file)
@@ -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
index 4c55da0a0a86fca76cee12d2db6c292c63f1890a..1405bf41ed014907ecb7689470811a723abf216a 100644 (file)
@@ -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---
index 5ed780f7f9f7d0bb15324dae9cf49612f07d2e3b..bcafb03c3fce302554e86bc62fe18085c64351b2 100644 (file)
@@ -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---
index a719570b81df71cd43a4051cc96fe7afa2fc1043..02f9dbd21394e2a2ac6dee8f7229190bc7cd885f 100644 (file)
@@ -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---
index a49ef60870773c49232712b9216696806de6cb6d..63ec317c1ee0a7144f87f3a80406eb53c231a7dc 100644 (file)
@@ -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