diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2015-04-14 18:46:00 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-14 19:49:02 -0400 |
commit | c81956c9cd587d36b87d4ab37c92016ebb79b517 (patch) | |
tree | 84fc0995d9f6f745f9561a06f366d3fababdf6eb /arch/s390/Kconfig | |
parent | 06ef42a16f2dd8480ada1be3a549e12b02c45915 (diff) |
s390: expose number of page table levels
We would want to use number of page table level to define mm_struct.
Let's expose it as CONFIG_PGTABLE_LEVELS.
Core mm expects __PAGETABLE_{PUD,PMD}_FOLDED to be defined if these page
table levels folded.
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/s390/Kconfig')
-rw-r--r-- | arch/s390/Kconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index 373cd5badf1c..f6aebcb7a0f8 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig | |||
@@ -155,6 +155,11 @@ config S390 | |||
155 | config SCHED_OMIT_FRAME_POINTER | 155 | config SCHED_OMIT_FRAME_POINTER |
156 | def_bool y | 156 | def_bool y |
157 | 157 | ||
158 | config PGTABLE_LEVELS | ||
159 | int | ||
160 | default 4 if 64BIT | ||
161 | default 2 | ||
162 | |||
158 | source "init/Kconfig" | 163 | source "init/Kconfig" |
159 | 164 | ||
160 | source "kernel/Kconfig.freezer" | 165 | source "kernel/Kconfig.freezer" |