ia64: 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. We need to define PGTABLE_LEVELS before sourcing init/Kconfig: arch/Kconfig will define default value and it's sourced from init/Kconfig. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Tony Luck <tony.luck@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.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>
This commit is contained in:

committed by
Linus Torvalds

parent
1bcad26e9d
commit
4d66bcc7cf
@@ -156,9 +156,9 @@ void arch_crash_save_vmcoreinfo(void)
|
||||
VMCOREINFO_OFFSET(node_memblk_s, start_paddr);
|
||||
VMCOREINFO_OFFSET(node_memblk_s, size);
|
||||
#endif
|
||||
#ifdef CONFIG_PGTABLE_3
|
||||
#if CONFIG_PGTABLE_LEVELS == 3
|
||||
VMCOREINFO_CONFIG(PGTABLE_3);
|
||||
#elif defined(CONFIG_PGTABLE_4)
|
||||
#elif CONFIG_PGTABLE_LEVELS == 4
|
||||
VMCOREINFO_CONFIG(PGTABLE_4);
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user