Skip to content

Commit

Permalink
arm: expose number of page table levels on Kconfig level
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Russell King <[email protected]>
Tested-by: Guenter Roeck <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
kiryl authored and torvalds committed Apr 14, 2015
1 parent 9f25e6a commit 1bcad26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,11 @@ config GENERIC_BUG
def_bool y
depends on BUG

config PGTABLE_LEVELS
int
default 3 if ARM_LPAE
default 2

source "init/Kconfig"

source "kernel/Kconfig.freezer"
Expand Down

0 comments on commit 1bcad26

Please sign in to comment.