aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/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 /arch/x86/include/asm/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 'arch/x86/include/asm/intr_remapping.h')
-rw-r--r--arch/x86/include/asm/intr_remapping.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/include/asm/intr_remapping.h b/arch/x86/include/asm/intr_remapping.h
index a22e1f1ac7ec..ae933ecfd8f0 100644
--- a/arch/x86/include/asm/intr_remapping.h
+++ b/arch/x86/include/asm/intr_remapping.h
@@ -40,6 +40,9 @@ extern int intr_setup_ioapic_entry(int irq,
40 struct IO_APIC_route_entry *entry, 40 struct IO_APIC_route_entry *entry,
41 unsigned int destination, int vector, 41 unsigned int destination, int vector,
42 struct io_apic_irq_attr *attr); 42 struct io_apic_irq_attr *attr);
43extern int intr_set_affinity(struct irq_data *data,
44 const struct cpumask *mask,
45 bool force);
43 46
44#else /* CONFIG_IRQ_REMAP */ 47#else /* CONFIG_IRQ_REMAP */
45 48
@@ -59,6 +62,12 @@ static inline int intr_setup_ioapic_entry(int irq,
59{ 62{
60 return -ENODEV; 63 return -ENODEV;
61} 64}
65static inline int intr_set_affinity(struct irq_data *data,
66 const struct cpumask *mask,
67 bool force)
68{
69 return 0;
70}
62#endif /* CONFIG_IRQ_REMAP */ 71#endif /* CONFIG_IRQ_REMAP */
63 72
64#endif /* __X86_INTR_REMAPPING_H */ 73#endif /* __X86_INTR_REMAPPING_H */