Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212207
b: refs/heads/master
c: 0e1e367
h: refs/heads/master
i:
  212205: 15380e9
  212203: a9db034
  212199: 83ee22e
  212191: b54649a
v: v3
  • Loading branch information
Thomas Gleixner committed Oct 12, 2010
1 parent e9cf734 commit 91ce171
Show file tree
Hide file tree
Showing 2 changed files with 15 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: bc5fdf9f3aad37406b3c8d635a7940cd65de0c12
refs/heads/master: 0e1e367aab873becf3e21d9b0cf46d11154ebc3f
14 changes: 14 additions & 0 deletions trunk/drivers/pci/intr_remapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ static struct irq_2_iommu *irq_2_iommu_alloc(unsigned int irq)
return desc->irq_2_iommu;
}

static void irq_2_iommu_free(unsigned int irq)
{
struct irq_data *d = irq_get_irq_data(irq);
struct irq_2_iommu *p = d->irq_2_iommu;

d->irq_2_iommu = NULL;
kfree(p);
}

#else /* !CONFIG_SPARSE_IRQ */

static struct irq_2_iommu irq_2_iommuX[NR_IRQS];
Expand All @@ -110,6 +119,9 @@ static struct irq_2_iommu *irq_2_iommu_alloc(unsigned int irq)
{
return irq_2_iommu(irq);
}

static void irq_2_iommu_free(unsigned int irq) { }

#endif

static DEFINE_SPINLOCK(irq_2_ir_lock);
Expand Down Expand Up @@ -440,6 +452,8 @@ int free_irte(int irq)

spin_unlock_irqrestore(&irq_2_ir_lock, flags);

irq_2_iommu_free(irq);

return rc;
}

Expand Down

0 comments on commit 91ce171

Please sign in to comment.