public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* Hugetlbfs and hugetlb_page config menu
@ 2003-09-26 23:11 Chen, Kenneth W
  0 siblings, 0 replies; only message in thread
From: Chen, Kenneth W @ 2003-09-26 23:11 UTC (permalink / raw)
  To: linux-ia64

[-- Attachment #1: Type: text/plain, Size: 563 bytes --]

Hugetlbfs is not module'able at current state, so tristate the "HugeTLB
file system support" option is kind of silly.  Also, at present you can
set CONFIG_HUGETLB_PAGE and not CONFIG_HUGETLBFS, which give the kernel
low-level hugepage support, but no userspace API to access it is also
kind of silly.

While I'm at it, here is a patch that flips dependency around:
CONFIG_HUGETLB_PAGE mirrors CONFIG_HUGETLBFS option and hugetlb page
size selection appear/disappear depending on whether hugetlbfs is
selected or not.  (this is taken from 2.6).

- Ken

[-- Attachment #2: hugetlbfs-config.patch --]
[-- Type: application/octet-stream, Size: 1094 bytes --]

diff -Nur 2.4.23-pre5/arch/ia64/config.in 2.4.23-pre5.ken/arch/ia64/config.in
--- 2.4.23-pre5/arch/ia64/config.in	Fri Sep 26 14:21:54 2003
+++ 2.4.23-pre5.ken/arch/ia64/config.in	Fri Sep 26 15:55:20 2003
@@ -86,8 +86,6 @@
 
 define_int CONFIG_FORCE_MAX_ZONEORDER 19
 
-bool 'IA-64 Huge TLB Page Support' CONFIG_HUGETLB_PAGE
-
 if [ "$CONFIG_HUGETLB_PAGE" = "y" ]; then
 	if [ "$CONFIG_MCKINLEY" = "y" ]; then
 		choice '    IA-64 Huge TLB Page Size'		\
diff -Nur 2.4.23-pre5/fs/Config.in 2.4.23-pre5.ken/fs/Config.in
--- 2.4.23-pre5/fs/Config.in	Fri Sep 26 14:22:03 2003
+++ 2.4.23-pre5.ken/fs/Config.in	Fri Sep 26 15:56:51 2003
@@ -54,8 +54,11 @@
 bool 'Virtual memory file system support (former shm fs)' CONFIG_TMPFS
 define_bool CONFIG_RAMFS y
 
-if [ "$CONFIG_HUGETLB_PAGE" = "y" ]; then
-	tristate 'HugeTLB file system support' CONFIG_HUGETLBFS 
+bool 'HugeTLB file system support' CONFIG_HUGETLBFS
+if [ "$CONFIG_HUGETLBFS" = "y" ]; then
+	define_bool CONFIG_HUGETLB_PAGE y
+else
+	define_bool CONFIG_HUGETLB_PAGE n
 fi
 
 tristate 'ISO 9660 CDROM file system support' CONFIG_ISO9660_FS

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-09-26 23:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-26 23:11 Hugetlbfs and hugetlb_page config menu Chen, Kenneth W

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox