x86/irq: Add and use NR_EXTERNAL_VECTORS and NR_SYSTEM_VECTORS
authorH. Peter Anvin (Intel) <hpa@zytor.com>
Wed, 19 May 2021 21:21:48 +0000 (14:21 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 21 May 2021 10:36:44 +0000 (12:36 +0200)
commitff851003880de9d1111498877551ba16668c38ef
tree9187cb318ba510a3d12a405f280e870b1b751d1e
parentf1b7d45d3f8f3e18e190e71cb54d4b1917300d1d
x86/irq: Add and use NR_EXTERNAL_VECTORS and NR_SYSTEM_VECTORS

Add defines for the number of external vectors and number of system
vectors instead of requiring the use of (FIRST_SYSTEM_VECTOR -
FIRST_EXTERNAL_VECTOR) and (NR_VECTORS - FIRST_SYSTEM_VECTOR)
respectively. Clean up the usage sites.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Andy Lutomirski <luto@kernel.org>
Link: https://lore.kernel.org/r/20210519212154.511983-3-hpa@zytor.com
arch/x86/include/asm/idtentry.h
arch/x86/include/asm/irq_vectors.h
tools/arch/x86/include/asm/irq_vectors.h