diff options
Diffstat (limited to 'arch/x86/kernel/io_apic_32.c')
-rw-r--r-- | arch/x86/kernel/io_apic_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/io_apic_32.c b/arch/x86/kernel/io_apic_32.c index d4f9df2b022a..dac47d61d2be 100644 --- a/arch/x86/kernel/io_apic_32.c +++ b/arch/x86/kernel/io_apic_32.c | |||
@@ -1174,7 +1174,7 @@ static int __assign_irq_vector(int irq) | |||
1174 | offset = current_offset; | 1174 | offset = current_offset; |
1175 | next: | 1175 | next: |
1176 | vector += 8; | 1176 | vector += 8; |
1177 | if (vector >= FIRST_SYSTEM_VECTOR) { | 1177 | if (vector >= first_system_vector) { |
1178 | offset = (offset + 1) % 8; | 1178 | offset = (offset + 1) % 8; |
1179 | vector = FIRST_DEVICE_VECTOR + offset; | 1179 | vector = FIRST_DEVICE_VECTOR + offset; |
1180 | } | 1180 | } |
@@ -2280,7 +2280,7 @@ void __init setup_IO_APIC(void) | |||
2280 | int i; | 2280 | int i; |
2281 | 2281 | ||
2282 | /* Reserve all the system vectors. */ | 2282 | /* Reserve all the system vectors. */ |
2283 | for (i = FIRST_SYSTEM_VECTOR; i < NR_VECTORS; i++) | 2283 | for (i = first_system_vector; i < NR_VECTORS; i++) |
2284 | set_bit(i, used_vectors); | 2284 | set_bit(i, used_vectors); |
2285 | 2285 | ||
2286 | enable_IO_APIC(); | 2286 | enable_IO_APIC(); |