Skip to content

Commit a728ab5

Browse files
kiryltorvalds
authored andcommitted
mips: expose number of page table levels on Kconfig level
We would want to use number of page table level to define mm_struct. Let's expose it as CONFIG_PGTABLE_LEVELS. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Ralf Baechle <ralf@linux-mips.org> 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>
1 parent 980d5b7 commit a728ab5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎arch/mips/Kconfig‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,6 +2600,11 @@ config STACKTRACE_SUPPORT
26002600
bool
26012601
default y
26022602

2603+
config PGTABLE_LEVELS
2604+
int
2605+
default 3 if 64BIT && !PAGE_SIZE_64KB
2606+
default 2
2607+
26032608
source "init/Kconfig"
26042609

26052610
source "kernel/Kconfig.freezer"

0 commit comments

Comments
 (0)