diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-07-08 03:53:57 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 03:53:57 -0400 |
commit | 1b8ba39a3fad9c58532f6dad12c94d6e675be656 (patch) | |
tree | 9ae9b4c4545b4c91f5dbb3a1085c4c721961c4f2 /arch/x86/kernel/io_apic_64.c | |
parent | 58cf35228fec541418cc3bd781d6c069d904815e (diff) | |
parent | cbd6712406a3ea861b49fbfd46e23cbf5f8e073f (diff) |
Merge branch 'x86/irq' into x86/devel
Conflicts:
arch/x86/kernel/i8259.c
arch/x86/kernel/irqinit_64.c
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/io_apic_64.c')
-rw-r--r-- | arch/x86/kernel/io_apic_64.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/x86/kernel/io_apic_64.c b/arch/x86/kernel/io_apic_64.c index e5ef60303562..78a3866ab367 100644 --- a/arch/x86/kernel/io_apic_64.c +++ b/arch/x86/kernel/io_apic_64.c | |||
@@ -82,6 +82,10 @@ static struct irq_cfg irq_cfg[NR_IRQS] __read_mostly = { | |||
82 | 82 | ||
83 | static int assign_irq_vector(int irq, cpumask_t mask); | 83 | static int assign_irq_vector(int irq, cpumask_t mask); |
84 | 84 | ||
85 | int first_system_vector = 0xfe; | ||
86 | |||
87 | char system_vectors[NR_VECTORS] = { [0 ... NR_VECTORS-1] = SYS_VECTOR_FREE}; | ||
88 | |||
85 | #define __apicdebuginit __init | 89 | #define __apicdebuginit __init |
86 | 90 | ||
87 | int sis_apic_bug; /* not actually supported, dummy for compile */ | 91 | int sis_apic_bug; /* not actually supported, dummy for compile */ |
@@ -737,7 +741,7 @@ static int __assign_irq_vector(int irq, cpumask_t mask) | |||
737 | offset = current_offset; | 741 | offset = current_offset; |
738 | next: | 742 | next: |
739 | vector += 8; | 743 | vector += 8; |
740 | if (vector >= FIRST_SYSTEM_VECTOR) { | 744 | if (vector >= first_system_vector) { |
741 | /* If we run out of vectors on large boxen, must share them. */ | 745 | /* If we run out of vectors on large boxen, must share them. */ |
742 | offset = (offset + 1) % 8; | 746 | offset = (offset + 1) % 8; |
743 | vector = FIRST_DEVICE_VECTOR + offset; | 747 | vector = FIRST_DEVICE_VECTOR + offset; |