aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/intr_remapping.h
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2012-03-30 14:47:03 -0400
committerJoerg Roedel <joerg.roedel@amd.com>2012-05-07 08:34:59 -0400
commit4c1bad6a0af1e297c8d05365e65af89d8c7bf9d1 (patch)
treea369a0bfd4c744b67e218ef294753a1ccc38b13a /drivers/iommu/intr_remapping.h
parent0c3f173a88c4ae3e4253427cf574a59ad5352918 (diff)
iommu/vt-d: Convert IR set_affinity function to remap_ops
The function to set interrupt affinity with interrupt remapping enabled is Intel specific too. So move it to the irq_remap_ops 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.h')
-rw-r--r--drivers/iommu/intr_remapping.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/iommu/intr_remapping.h b/drivers/iommu/intr_remapping.h
index e8994f2b3bbe..e0bc6e0ba1fb 100644
--- a/drivers/iommu/intr_remapping.h
+++ b/drivers/iommu/intr_remapping.h
@@ -26,6 +26,8 @@
26 26
27struct IO_APIC_route_entry; 27struct IO_APIC_route_entry;
28struct io_apic_irq_attr; 28struct io_apic_irq_attr;
29struct irq_data;
30struct cpumask;
29 31
30extern int disable_intremap; 32extern int disable_intremap;
31extern int disable_sourceid_checking; 33extern int disable_sourceid_checking;
@@ -54,6 +56,10 @@ struct irq_remap_ops {
54 int (*setup_ioapic_entry)(int irq, struct IO_APIC_route_entry *, 56 int (*setup_ioapic_entry)(int irq, struct IO_APIC_route_entry *,
55 unsigned int, int, 57 unsigned int, int,
56 struct io_apic_irq_attr *); 58 struct io_apic_irq_attr *);
59
60 /* Set the CPU affinity of a remapped interrupt */
61 int (*set_affinity)(struct irq_data *data, const struct cpumask *mask,
62 bool force);
57}; 63};
58 64
59extern struct irq_remap_ops intel_irq_remap_ops; 65extern struct irq_remap_ops intel_irq_remap_ops;