diff options
author | David Daney <ddaney@caviumnetworks.com> | 2009-05-27 20:47:46 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-06-17 06:06:31 -0400 |
commit | 9cffd154cf6817b130762501b91e753524ba2cd4 (patch) | |
tree | 909da4068e99b7e32282c07bf005e5a36d17d6fc /arch/mips/Kconfig | |
parent | 852969b2d273e77dabbc22e1c1058cbafb7ad7d2 (diff) |
MIPS: Kconfig Add SYS_SUPPORTS_HUGETLBFS and enable it for some systems.
Add new kconfig variables SYS_SUPPORTS_HUGETLBFS and
CPU_SUPPORTS_HUGEPAGES. They are enabled for systems that are known
to support huge pages.
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/Kconfig')
-rw-r--r-- | arch/mips/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 96f05e588f4c..cebebf151a14 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -853,6 +853,11 @@ config SYS_SUPPORTS_BIG_ENDIAN | |||
853 | config SYS_SUPPORTS_LITTLE_ENDIAN | 853 | config SYS_SUPPORTS_LITTLE_ENDIAN |
854 | bool | 854 | bool |
855 | 855 | ||
856 | config SYS_SUPPORTS_HUGETLBFS | ||
857 | bool | ||
858 | depends on CPU_SUPPORTS_HUGEPAGES && 64BIT | ||
859 | default y | ||
860 | |||
856 | config IRQ_CPU | 861 | config IRQ_CPU |
857 | bool | 862 | bool |
858 | 863 | ||
@@ -1057,6 +1062,7 @@ config CPU_MIPS64_R1 | |||
1057 | select CPU_SUPPORTS_32BIT_KERNEL | 1062 | select CPU_SUPPORTS_32BIT_KERNEL |
1058 | select CPU_SUPPORTS_64BIT_KERNEL | 1063 | select CPU_SUPPORTS_64BIT_KERNEL |
1059 | select CPU_SUPPORTS_HIGHMEM | 1064 | select CPU_SUPPORTS_HIGHMEM |
1065 | select CPU_SUPPORTS_HUGEPAGES | ||
1060 | help | 1066 | help |
1061 | Choose this option to build a kernel for release 1 or later of the | 1067 | Choose this option to build a kernel for release 1 or later of the |
1062 | MIPS64 architecture. Many modern embedded systems with a 64-bit | 1068 | MIPS64 architecture. Many modern embedded systems with a 64-bit |
@@ -1076,6 +1082,7 @@ config CPU_MIPS64_R2 | |||
1076 | select CPU_SUPPORTS_32BIT_KERNEL | 1082 | select CPU_SUPPORTS_32BIT_KERNEL |
1077 | select CPU_SUPPORTS_64BIT_KERNEL | 1083 | select CPU_SUPPORTS_64BIT_KERNEL |
1078 | select CPU_SUPPORTS_HIGHMEM | 1084 | select CPU_SUPPORTS_HIGHMEM |
1085 | select CPU_SUPPORTS_HUGEPAGES | ||
1079 | help | 1086 | help |
1080 | Choose this option to build a kernel for release 2 or later of the | 1087 | Choose this option to build a kernel for release 2 or later of the |
1081 | MIPS64 architecture. Many modern embedded systems with a 64-bit | 1088 | MIPS64 architecture. Many modern embedded systems with a 64-bit |
@@ -1162,6 +1169,7 @@ config CPU_R5500 | |||
1162 | select CPU_HAS_LLSC | 1169 | select CPU_HAS_LLSC |
1163 | select CPU_SUPPORTS_32BIT_KERNEL | 1170 | select CPU_SUPPORTS_32BIT_KERNEL |
1164 | select CPU_SUPPORTS_64BIT_KERNEL | 1171 | select CPU_SUPPORTS_64BIT_KERNEL |
1172 | select CPU_SUPPORTS_HUGEPAGES | ||
1165 | help | 1173 | help |
1166 | NEC VR5500 and VR5500A series processors implement 64-bit MIPS IV | 1174 | NEC VR5500 and VR5500A series processors implement 64-bit MIPS IV |
1167 | instruction set. | 1175 | instruction set. |
@@ -1247,6 +1255,7 @@ config CPU_CAVIUM_OCTEON | |||
1247 | select WEAK_ORDERING | 1255 | select WEAK_ORDERING |
1248 | select WEAK_REORDERING_BEYOND_LLSC | 1256 | select WEAK_REORDERING_BEYOND_LLSC |
1249 | select CPU_SUPPORTS_HIGHMEM | 1257 | select CPU_SUPPORTS_HIGHMEM |
1258 | select CPU_SUPPORTS_HUGEPAGES | ||
1250 | help | 1259 | help |
1251 | The Cavium Octeon processor is a highly integrated chip containing | 1260 | The Cavium Octeon processor is a highly integrated chip containing |
1252 | many ethernet hardware widgets for networking tasks. The processor | 1261 | many ethernet hardware widgets for networking tasks. The processor |
@@ -1366,6 +1375,8 @@ config CPU_SUPPORTS_32BIT_KERNEL | |||
1366 | bool | 1375 | bool |
1367 | config CPU_SUPPORTS_64BIT_KERNEL | 1376 | config CPU_SUPPORTS_64BIT_KERNEL |
1368 | bool | 1377 | bool |
1378 | config CPU_SUPPORTS_HUGEPAGES | ||
1379 | bool | ||
1369 | 1380 | ||
1370 | # | 1381 | # |
1371 | # Set to y for ptrace access to watch registers. | 1382 | # Set to y for ptrace access to watch registers. |