diff options
author | Dou Liyang <douly.fnst@cn.fujitsu.com> | 2018-05-23 10:35:55 +0800 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-06-06 13:38:01 +0200 |
commit | 336628128826a9acb045571a960e32e4414ccb61 (patch) | |
tree | 172d0a021897995579b33c5a8a3f11f89d15a9c4 /arch/x86/include/asm | |
parent | cce2946b9b30a9b31a18de737d5010c08076e77f (diff) | |
download | blackbird-obmc-linux-336628128826a9acb045571a960e32e4414ccb61.tar.gz blackbird-obmc-linux-336628128826a9acb045571a960e32e4414ccb61.zip |
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
Diffstat (limited to 'arch/x86/include/asm')
0 files changed, 0 insertions, 0 deletions