Skip to content

Commit

Permalink
[PATCH] x86-64: typo in __assign_irq_vector when updating pos for vec…
Browse files Browse the repository at this point in the history
…tor and offset

typo with cpu instead of new_cpu

Signed-off-by: Yinghai Lu <yinghai.lu@amd.com>
Signed-off-by: Andi Kleen <ak@suse.de>
  • Loading branch information
Yinghai Lu authored and Andi Kleen committed Oct 21, 2006
1 parent 926fafe commit 45edfd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/x86_64/kernel/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,12 +651,12 @@ static int __assign_irq_vector(int irq, cpumask_t mask, cpumask_t *result)
if (vector == IA32_SYSCALL_VECTOR)
goto next;
for_each_cpu_mask(new_cpu, domain)
if (per_cpu(vector_irq, cpu)[vector] != -1)
if (per_cpu(vector_irq, new_cpu)[vector] != -1)
goto next;
/* Found one! */
for_each_cpu_mask(new_cpu, domain) {
pos[cpu].vector = vector;
pos[cpu].offset = offset;
pos[new_cpu].vector = vector;
pos[new_cpu].offset = offset;
}
if (old_vector >= 0) {
int old_cpu;
Expand Down

0 comments on commit 45edfd1

Please sign in to comment.