diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2012-03-30 14:47:04 -0400 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2012-05-07 08:34:59 -0400 |
commit | 9d619f65722236e0e0c35467d1528caed206e439 (patch) | |
tree | 6d0a77b7835fc056810a05be5a217e96d9153ff7 /drivers/iommu/intr_remapping.c | |
parent | 4c1bad6a0af1e297c8d05365e65af89d8c7bf9d1 (diff) |
iommu/vt-d: Convert free_irte into a remap_ops callback
The operation for releasing a remapping entry is iommu
specific too.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/iommu/intr_remapping.c')
-rw-r--r-- | drivers/iommu/intr_remapping.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/iommu/intr_remapping.c b/drivers/iommu/intr_remapping.c index 2f4f27ffb861..a68d304f9729 100644 --- a/drivers/iommu/intr_remapping.c +++ b/drivers/iommu/intr_remapping.c | |||
@@ -119,3 +119,11 @@ int intr_set_affinity(struct irq_data *data, const struct cpumask *mask, | |||
119 | 119 | ||
120 | return remap_ops->set_affinity(data, mask, force); | 120 | return remap_ops->set_affinity(data, mask, force); |
121 | } | 121 | } |
122 | |||
123 | void intr_free_irq(int irq) | ||
124 | { | ||
125 | if (!remap_ops || !remap_ops->free_irq) | ||
126 | return; | ||
127 | |||
128 | remap_ops->free_irq(irq); | ||
129 | } | ||