diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2009-11-20 10:08:55 -0500 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2009-11-27 08:16:26 -0500 |
commit | 601367d76bd19b7eea2286ae99e5b1cb5d74f38d (patch) | |
tree | 61ef58985a84b5ef699a28d020f70bd711de1488 /arch/x86/kernel/amd_iommu.c | |
parent | dcd1e92e405449ecc5e8bd8fcfebf3b2a13d3d37 (diff) |
x86/amd-iommu: Remove iommu_flush_domain function
This iommu_flush_tlb_pde function does essentially the same.
So the iommu_flush_domain function is redundant and can be
removed.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/kernel/amd_iommu.c')
-rw-r--r-- | arch/x86/kernel/amd_iommu.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index c55aa079ded3..b2c19f41f238 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c | |||
@@ -528,20 +528,6 @@ static void flush_all_domains_on_iommu(struct amd_iommu *iommu) | |||
528 | 528 | ||
529 | } | 529 | } |
530 | 530 | ||
531 | /* | ||
532 | * This function is used to flush the IO/TLB for a given protection domain | ||
533 | * on every IOMMU in the system | ||
534 | */ | ||
535 | static void iommu_flush_domain(u16 domid) | ||
536 | { | ||
537 | struct amd_iommu *iommu; | ||
538 | |||
539 | INC_STATS_COUNTER(domain_flush_all); | ||
540 | |||
541 | for_each_iommu(iommu) | ||
542 | flush_domain_on_iommu(iommu, domid); | ||
543 | } | ||
544 | |||
545 | void amd_iommu_flush_all_domains(void) | 531 | void amd_iommu_flush_all_domains(void) |
546 | { | 532 | { |
547 | struct amd_iommu *iommu; | 533 | struct amd_iommu *iommu; |
@@ -1464,7 +1450,7 @@ static void update_domain(struct protection_domain *domain) | |||
1464 | 1450 | ||
1465 | update_device_table(domain); | 1451 | update_device_table(domain); |
1466 | flush_devices_by_domain(domain); | 1452 | flush_devices_by_domain(domain); |
1467 | iommu_flush_domain(domain->id); | 1453 | iommu_flush_tlb_pde(domain); |
1468 | 1454 | ||
1469 | domain->updated = false; | 1455 | domain->updated = false; |
1470 | } | 1456 | } |
@@ -2377,7 +2363,7 @@ static void amd_iommu_unmap_range(struct iommu_domain *dom, | |||
2377 | iova += PAGE_SIZE; | 2363 | iova += PAGE_SIZE; |
2378 | } | 2364 | } |
2379 | 2365 | ||
2380 | iommu_flush_domain(domain->id); | 2366 | iommu_flush_tlb_pde(domain); |
2381 | } | 2367 | } |
2382 | 2368 | ||
2383 | static phys_addr_t amd_iommu_iova_to_phys(struct iommu_domain *dom, | 2369 | static phys_addr_t amd_iommu_iova_to_phys(struct iommu_domain *dom, |