diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-08-20 03:49:48 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 14:52:05 (GMT) |
commit | 0799e432acfda879eaeef9622426bfa1434f3786 (patch) | |
tree | bc9a1d07438c52df08ab1e283ccd0a191b5fe05d /arch/x86/kernel/irqinit_32.c | |
parent | 85c0f90978bf50596dbd23854648020f1f9b5bfd (diff) | |
download | linux-fsl-qoriq-0799e432acfda879eaeef9622426bfa1434f3786.tar.xz |
x86: use nr_irqs
also add first_free_entry and pin_map_size, which were NR_IRQS derived
constants.
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/irqinit_32.c')
-rw-r--r-- | arch/x86/kernel/irqinit_32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/irqinit_32.c b/arch/x86/kernel/irqinit_32.c index 9200a1e..65c1c95 100644 --- a/arch/x86/kernel/irqinit_32.c +++ b/arch/x86/kernel/irqinit_32.c @@ -100,7 +100,7 @@ void __init native_init_IRQ(void) */ for (i = 0; i < (NR_VECTORS - FIRST_EXTERNAL_VECTOR); i++) { int vector = FIRST_EXTERNAL_VECTOR + i; - if (i >= NR_IRQS) + if (i >= nr_irqs) break; /* SYSCALL_VECTOR was reserved in trap_init. */ if (!test_bit(vector, used_vectors)) |