diff options
-rw-r--r-- | arch/x86_64/kernel/io_apic.c | 10 |
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. */ |
618 | static u8 irq_vector[NR_IRQ_VECTORS] __read_mostly = { | 618 | static 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 | ||
637 | static cpumask_t irq_domain[NR_IRQ_VECTORS] __read_mostly = { | 637 | static 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]; |