init: Invoke init_espfix_bsp() from mm_init()
authorThomas Gleixner <tglx@linutronix.de>
Sun, 17 Dec 2017 09:56:29 +0000 (10:56 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 22 Dec 2017 19:13:05 +0000 (20:13 +0100)
commit613e396bc0d4c7604fba23256644e78454c68cf6
tree8ffcc7982ba17085864a3e87525e2090255e00bc
parent92a0f81d89571e3e8759366e050ee05cc545ef99
init: Invoke init_espfix_bsp() from mm_init()

init_espfix_bsp() needs to be invoked before the page table isolation
initialization. Move it into mm_init() which is the place where pti_init()
will be added.

While at it get rid of the #ifdeffery and provide proper stub functions.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/espfix.h
arch/x86/kernel/smpboot.c
include/asm-generic/pgtable.h
init/main.c