Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321839
b: refs/heads/master
c: f1c6300
h: refs/heads/master
i:
  321837: 329b9d9
  321835: d5683ed
  321831: 2fbcd29
  321823: 08f8d65
v: v3
  • Loading branch information
Suresh Siddha authored and H. Peter Anvin committed Aug 14, 2012
1 parent f63f454 commit 0f12149
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 484d90eec884d814b005c9736bcf3fd018acba65
refs/heads/master: f1c6300183dbf5b9da25988e13f6f25a9e27151b
10 changes: 10 additions & 0 deletions trunk/arch/x86/kernel/apic/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,16 @@ static void setup_ioapic_irq(unsigned int irq, struct irq_cfg *cfg,
if (!IO_APIC_IRQ(irq))
return;

/*
* For legacy irqs, cfg->domain starts with cpu 0. Now that IO-APIC
* can handle this irq and the apic driver is finialized at this point,
* update the cfg->domain.
*/
if (irq < legacy_pic->nr_legacy_irqs &&
cpumask_equal(cfg->domain, cpumask_of(0)))
apic->vector_allocation_domain(0, cfg->domain,
apic->target_cpus());

if (assign_irq_vector(irq, cfg, apic->target_cpus()))
return;

Expand Down

0 comments on commit 0f12149

Please sign in to comment.