aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/intel_irq_remapping.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iommu/intel_irq_remapping.c')
-rw-r--r--drivers/iommu/intel_irq_remapping.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remapping.c
index b4d39507681a..1c0255e4ff29 100644
--- a/drivers/iommu/intel_irq_remapping.c
+++ b/drivers/iommu/intel_irq_remapping.c
@@ -902,6 +902,7 @@ static int intel_setup_ioapic_entry(int irq,
902 return 0; 902 return 0;
903} 903}
904 904
905#ifdef CONFIG_SMP
905/* 906/*
906 * Migrate the IO-APIC irq in the presence of intr-remapping. 907 * Migrate the IO-APIC irq in the presence of intr-remapping.
907 * 908 *
@@ -955,6 +956,7 @@ intel_ioapic_set_affinity(struct irq_data *data, const struct cpumask *mask,
955 cpumask_copy(data->affinity, mask); 956 cpumask_copy(data->affinity, mask);
956 return 0; 957 return 0;
957} 958}
959#endif
958 960
959static void intel_compose_msi_msg(struct pci_dev *pdev, 961static void intel_compose_msi_msg(struct pci_dev *pdev,
960 unsigned int irq, unsigned int dest, 962 unsigned int irq, unsigned int dest,
@@ -1056,7 +1058,9 @@ struct irq_remap_ops intel_irq_remap_ops = {
1056 .reenable = reenable_irq_remapping, 1058 .reenable = reenable_irq_remapping,
1057 .enable_faulting = enable_drhd_fault_handling, 1059 .enable_faulting = enable_drhd_fault_handling,
1058 .setup_ioapic_entry = intel_setup_ioapic_entry, 1060 .setup_ioapic_entry = intel_setup_ioapic_entry,
1061#ifdef CONFIG_SMP
1059 .set_affinity = intel_ioapic_set_affinity, 1062 .set_affinity = intel_ioapic_set_affinity,
1063#endif
1060 .free_irq = free_irte, 1064 .free_irq = free_irte,
1061 .compose_msi_msg = intel_compose_msi_msg, 1065 .compose_msi_msg = intel_compose_msi_msg,
1062 .msi_alloc_irq = intel_msi_alloc_irq, 1066 .msi_alloc_irq = intel_msi_alloc_irq,