]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit966bec40d835209f06454905664c0fd2826b821a
tree8ffcc7982ba17085864a3e87525e2090255e00bc
parente5b3723bb96efc331e40e7fa56a9582aa1911fc2
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