aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-01-03 08:16:35 -0500
committerJoerg Roedel <joerg.roedel@amd.com>2009-01-03 10:44:15 -0500
commit065a6d68c71af2a3bdd080fa5aa353b76eede8f5 (patch)
tree79a71fc0d517e72909a02b16129c4cfd2e123811
parentb0a11f44aba631fd4b898b620c93cc2096f3f15c (diff)
AMD IOMMU: remove now unnecessary #ifdefs
The #ifdef's are no longer necessary when the iommu-api and the amd iommu updates are merged together. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
-rw-r--r--arch/x86/kernel/amd_iommu.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
index 881c68ffdf2e..5113c080f0c4 100644
--- a/arch/x86/kernel/amd_iommu.c
+++ b/arch/x86/kernel/amd_iommu.c
@@ -426,7 +426,6 @@ static void iommu_flush_tlb(struct amd_iommu *iommu, u16 domid)
426 iommu_queue_inv_iommu_pages(iommu, address, domid, 0, 1); 426 iommu_queue_inv_iommu_pages(iommu, address, domid, 0, 1);
427} 427}
428 428
429#ifdef CONFIG_IOMMU_API
430/* 429/*
431 * This function is used to flush the IO/TLB for a given protection domain 430 * This function is used to flush the IO/TLB for a given protection domain
432 * on every IOMMU in the system 431 * on every IOMMU in the system
@@ -450,7 +449,6 @@ static void iommu_flush_domain(u16 domid)
450 spin_unlock_irqrestore(&iommu->lock, flags); 449 spin_unlock_irqrestore(&iommu->lock, flags);
451 } 450 }
452} 451}
453#endif
454 452
455/**************************************************************************** 453/****************************************************************************
456 * 454 *
@@ -516,7 +514,6 @@ static int iommu_map_page(struct protection_domain *dom,
516 return 0; 514 return 0;
517} 515}
518 516
519#ifdef CONFIG_IOMMU_API
520static void iommu_unmap_page(struct protection_domain *dom, 517static void iommu_unmap_page(struct protection_domain *dom,
521 unsigned long bus_addr) 518 unsigned long bus_addr)
522{ 519{
@@ -538,7 +535,6 @@ static void iommu_unmap_page(struct protection_domain *dom,
538 535
539 *pte = 0; 536 *pte = 0;
540} 537}
541#endif
542 538
543/* 539/*
544 * This function checks if a specific unity mapping entry is needed for 540 * This function checks if a specific unity mapping entry is needed for
@@ -723,7 +719,6 @@ static u16 domain_id_alloc(void)
723 return id; 719 return id;
724} 720}
725 721
726#ifdef CONFIG_IOMMU_API
727static void domain_id_free(int id) 722static void domain_id_free(int id)
728{ 723{
729 unsigned long flags; 724 unsigned long flags;
@@ -733,7 +728,6 @@ static void domain_id_free(int id)
733 __clear_bit(id, amd_iommu_pd_alloc_bitmap); 728 __clear_bit(id, amd_iommu_pd_alloc_bitmap);
734 write_unlock_irqrestore(&amd_iommu_devtable_lock, flags); 729 write_unlock_irqrestore(&amd_iommu_devtable_lock, flags);
735} 730}
736#endif
737 731
738/* 732/*
739 * Used to reserve address ranges in the aperture (e.g. for exclusion 733 * Used to reserve address ranges in the aperture (e.g. for exclusion
@@ -1702,9 +1696,7 @@ int __init amd_iommu_init_dma_ops(void)
1702 /* Make the driver finally visible to the drivers */ 1696 /* Make the driver finally visible to the drivers */
1703 dma_ops = &amd_iommu_dma_ops; 1697 dma_ops = &amd_iommu_dma_ops;
1704 1698
1705#ifdef CONFIG_IOMMU_API
1706 register_iommu(&amd_iommu_ops); 1699 register_iommu(&amd_iommu_ops);
1707#endif
1708 1700
1709 bus_register_notifier(&pci_bus_type, &device_nb); 1701 bus_register_notifier(&pci_bus_type, &device_nb);
1710 1702
@@ -1732,8 +1724,6 @@ free_domains:
1732 * 1724 *
1733 *****************************************************************************/ 1725 *****************************************************************************/
1734 1726
1735#ifdef CONFIG_IOMMU_API
1736
1737static void cleanup_domain(struct protection_domain *domain) 1727static void cleanup_domain(struct protection_domain *domain)
1738{ 1728{
1739 unsigned long flags; 1729 unsigned long flags;
@@ -1944,4 +1934,3 @@ static struct iommu_ops amd_iommu_ops = {
1944 .iova_to_phys = amd_iommu_iova_to_phys, 1934 .iova_to_phys = amd_iommu_iova_to_phys,
1945}; 1935};
1946 1936
1947#endif