aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/io_apic.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2007-02-23 06:26:53 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-26 13:34:08 -0500
commite273d140d9d0c2c7941d97a6ace455113bb4ec63 (patch)
tree6bb13f41e94f85c3920b6f8e93dd5609fe984e7a /arch/x86_64/kernel/io_apic.c
parentf45bcd7022a46de48cc414e3ea3a5b9b4de318ec (diff)
[PATCH] x86_64 irq: Use NR_IRQS not NR_IRQ_VECTORS
NR_IRQ_VECTORS is currently a compatiblity define set to NR_IRQs. This patch updates the users of NR_IRQ_VECTORS to use NR_IRQs instead so that NR_IRQ_VECTORS can be removed. There is still shared code with arch/i386 that uses NR_IRQ_VECTORS so we can't remove the #define just yet :( Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86_64/kernel/io_apic.c')
-rw-r--r--arch/x86_64/kernel/io_apic.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86_64/kernel/io_apic.c b/arch/x86_64/kernel/io_apic.c
index 52fc19ba2b98..65d72189eb6a 100644
--- a/arch/x86_64/kernel/io_apic.c
+++ b/arch/x86_64/kernel/io_apic.c
@@ -74,7 +74,7 @@ int nr_ioapic_registers[MAX_IO_APICS];
74 * Rough estimation of how many shared IRQs there are, can 74 * Rough estimation of how many shared IRQs there are, can
75 * be changed anytime. 75 * be changed anytime.
76 */ 76 */
77#define MAX_PLUS_SHARED_IRQS NR_IRQ_VECTORS 77#define MAX_PLUS_SHARED_IRQS NR_IRQS
78#define PIN_MAP_SIZE (MAX_PLUS_SHARED_IRQS + NR_IRQS) 78#define PIN_MAP_SIZE (MAX_PLUS_SHARED_IRQS + NR_IRQS)
79 79
80/* 80/*
@@ -615,7 +615,7 @@ static int pin_2_irq(int idx, int apic, int pin)
615 615
616 616
617/* irq_vectors is indexed by the sum of all RTEs in all I/O APICs. */ 617/* irq_vectors is indexed by the sum of all RTEs in all I/O APICs. */
618static u8 irq_vector[NR_IRQ_VECTORS] __read_mostly = { 618static u8 irq_vector[NR_IRQS] __read_mostly = {
619 [0] = FIRST_EXTERNAL_VECTOR + 0, 619 [0] = FIRST_EXTERNAL_VECTOR + 0,
620 [1] = FIRST_EXTERNAL_VECTOR + 1, 620 [1] = FIRST_EXTERNAL_VECTOR + 1,
621 [2] = FIRST_EXTERNAL_VECTOR + 2, 621 [2] = FIRST_EXTERNAL_VECTOR + 2,
@@ -634,7 +634,7 @@ static u8 irq_vector[NR_IRQ_VECTORS] __read_mostly = {
634 [15] = FIRST_EXTERNAL_VECTOR + 15, 634 [15] = FIRST_EXTERNAL_VECTOR + 15,
635}; 635};
636 636
637static cpumask_t irq_domain[NR_IRQ_VECTORS] __read_mostly = { 637static cpumask_t irq_domain[NR_IRQS] __read_mostly = {
638 [0] = CPU_MASK_ALL, 638 [0] = CPU_MASK_ALL,
639 [1] = CPU_MASK_ALL, 639 [1] = CPU_MASK_ALL,
640 [2] = CPU_MASK_ALL, 640 [2] = CPU_MASK_ALL,
@@ -671,7 +671,7 @@ static int __assign_irq_vector(int irq, cpumask_t mask, cpumask_t *result)
671 int old_vector = -1; 671 int old_vector = -1;
672 int cpu; 672 int cpu;
673 673
674 BUG_ON((unsigned)irq >= NR_IRQ_VECTORS); 674 BUG_ON((unsigned)irq >= NR_IRQS);
675 675
676 /* Only try and allocate irqs on cpus that are present */ 676 /* Only try and allocate irqs on cpus that are present */
677 cpus_and(mask, mask, cpu_online_map); 677 cpus_and(mask, mask, cpu_online_map);
@@ -758,7 +758,7 @@ void __setup_vector_irq(int cpu)
758 int irq, vector; 758 int irq, vector;
759 759
760 /* Mark the inuse vectors */ 760 /* Mark the inuse vectors */
761 for (irq = 0; irq < NR_IRQ_VECTORS; ++irq) { 761 for (irq = 0; irq < NR_IRQS; ++irq) {
762 if (!cpu_isset(cpu, irq_domain[irq])) 762 if (!cpu_isset(cpu, irq_domain[irq]))
763 continue; 763 continue;
764 vector = irq_vector[irq]; 764 vector = irq_vector[irq];