Re: [PATCH 5/7] x86/cpu: Move early cpu initialization into a separate translation unit
From: Kirill A. Shutemov
Date: Tue Jun 05 2018 - 06:19:53 EST
On Sat, May 19, 2018 at 08:47:33AM +0000, Thomas Gleixner wrote:
> On Fri, 18 May 2018, Kirill A. Shutemov wrote:
>
> > __pgtable_l5_enabled shouldn't be needed after system has booted, we can
> > mark it as __initdata, but it requires preparation.
> >
> > This patch moves early cpu initialization into a separate translation
> > unit. This limits effect of USE_EARLY_PGTABLE_L5 to less code.
> >
> > Without the change cpu_init() uses __pgtable_l5_enabled. cpu_init() is
> > not __init function and it leads to section mismatch.
> >
> > Signed-off-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
>
> This makes a lot of sense independent of 5level changes.
>
> Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Ingo, I've just noticed that this patch wasn't applied.
Below is rebased version. It applies cleanly on current tip/master and
Linus' tree.
---------------------8<----------------------------------