Skip to content

Commit

Permalink
x86: remove nr_irq_vectors
Browse files Browse the repository at this point in the history
remove unused defines derived from the (now obsolete) NR_IRQS define.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Oct 16, 2008
1 parent 71f521b commit bfea123
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions include/asm-x86/irq_vectors.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,31 +116,22 @@
# else
# define NR_IRQS (NR_VECTORS + (32 * MAX_IO_APICS))
# endif
# define NR_IRQ_VECTORS NR_IRQS

#elif !defined(CONFIG_X86_VOYAGER)

# if defined(CONFIG_X86_IO_APIC) || defined(CONFIG_PARAVIRT) || defined(CONFIG_X86_VISWS)

# define NR_IRQS 224

# if (224 >= 32 * NR_CPUS)
# define NR_IRQ_VECTORS NR_IRQS
# else
# define NR_IRQ_VECTORS (32 * NR_CPUS)
# endif

# else /* IO_APIC || PARAVIRT */

# define NR_IRQS 16
# define NR_IRQ_VECTORS NR_IRQS

# endif

#else /* !VISWS && !VOYAGER */

# define NR_IRQS 224
# define NR_IRQ_VECTORS NR_IRQS

#endif /* VISWS */

Expand Down

0 comments on commit bfea123

Please sign in to comment.