Home
last modified time | relevance | path

Searched hist:"336628128826 a9acb045571a960e32e4414ccb61" (Results 1 – 1 of 1) sorted by relevance

/linux/arch/x86/kernel/
H A Didt.cdiff 336628128826a9acb045571a960e32e4414ccb61 Wed May 23 04:35:55 CEST 2018 Dou Liyang <douly.fnst@cn.fujitsu.com> x86/idt: Simplify the idt_setup_apic_and_irq_gates()

The idt_setup_apic_and_irq_gates() sets the gates from
FIRST_EXTERNAL_VECTOR up to FIRST_SYSTEM_VECTOR first. then secondly, from
FIRST_SYSTEM_VECTOR to NR_VECTORS, it takes both APIC=y and APIC=n into
account.

But for APIC=n, the FIRST_SYSTEM_VECTOR is equal to NR_VECTORS, all
vectors has been set at the first step.

Simplify the second step, make it just work for APIC=y.

Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20180523023555.2933-1-douly.fnst@cn.fujitsu.com