]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mm: Fix 'no5lvl' handling
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Fri, 22 Jun 2018 22:08:41 +0000 (01:08 +0300)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 23 Jun 2018 12:20:37 +0000 (14:20 +0200)
commiteba06636f0921f0a4c9e3ef7316728f2ef8f1ea2
tree1f969e50a4c237e4482a417af7c68f89e68e9938
parent240d81b8bde6c44fa8986fb5686e77ea007a0302
x86/mm: Fix 'no5lvl' handling

early_identify_cpu() has to use early version of pgtable_l5_enabled()
that doesn't rely on cpu_feature_enabled().

Defining USE_EARLY_PGTABLE_L5 before all includes does the trick.

I lost the define in one of reworks of the original patch.

Fixes: f5b5cc4ddb27 ("x86/mm: Introduce the 'no5lvl' kernel parameter")
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Link: https://lkml.kernel.org/r/20180622220841.54135-3-kirill.shutemov@linux.intel.com
arch/x86/kernel/cpu/common.c