x86/idt: Consolidate idt functionality
authorThomas Gleixner <tglx@linutronix.de>
Thu, 28 May 2020 14:53:20 +0000 (16:53 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:15:26 +0000 (15:15 +0200)
commit3e77abda65b1cec10ef6b18b1ccfee0beaf400f1
tree6bc8e8b203695a35c7a68488c7641280664151f0
parent00229a54300108502f68c8777faca2d13f805f1a
x86/idt: Consolidate idt functionality

 - Move load_current_idt() out of line and replace the hideous comment with
   a lockdep assert. This allows to make idt_table and idt_descr static.

 - Mark idt_table read only after the IDT initialization is complete.

 - Shuffle code around to consolidate the #ifdef sections into one.

 - Adapt the F00F bug code.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200528145523.084915381@linutronix.de
arch/x86/include/asm/desc.h
arch/x86/kernel/idt.c
arch/x86/mm/fault.c