Skip to content

Commit 2458e53

Browse files
kirylKAGA-KOKO
authored andcommitted
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: 372fddf ("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
1 parent 51be133 commit 2458e53

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎arch/x86/kernel/cpu/common.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/* cpu_feature_enabled() cannot be used this early */
2+
#define USE_EARLY_PGTABLE_L5
3+
14
#include <linux/bootmem.h>
25
#include <linux/linkage.h>
36
#include <linux/bitops.h>

0 commit comments

Comments
 (0)