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
This commit is contained in:
Thomas Gleixner 2020-05-28 16:53:20 +02:00
commit 3e77abda65
3 changed files with 44 additions and 52 deletions