| Date | Sat, 19 May 2018 10:44:47 +0200 (CEST) | From | Thomas Gleixner <> | Subject | Re: [PATCH 2/7] x86/mm: Unify pgtable_l5_enabled usage in early boot code |
| |
On Fri, 18 May 2018, Kirill A. Shutemov wrote:
> Usually pgtable_l5_enabled is defined using cpu_feature_enabled(). > cpu_feature_enabled() is not available in early boot code. We use > several different preprocessor tricks to get around it. It's messy. > > Unify them all. > > If cpu_feature_enabled() is not yet available, USE_EARLY_PGTABLE_L5 can > be defined before all includes. It makes pgtable_l5_enabled rely on > __pgtable_l5_enabled variable instead. This approach fits all early > users. > > Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
|