Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158090
b: refs/heads/master
c: 6a0dbcb
h: refs/heads/master
v: v3
  • Loading branch information
Joerg Roedel committed Sep 3, 2009
1 parent f9f2ad3 commit ccb9062
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a6d41a4027b758a9473197a78fab45afb31003aa
refs/heads/master: 6a0dbcbe4e612fbc9d73cd4dde8ebef19295058a
10 changes: 8 additions & 2 deletions trunk/arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,13 +481,14 @@ void amd_iommu_flush_all_domains(void)
}
}

void amd_iommu_flush_all_devices(void)
static void flush_devices_by_domain(struct protection_domain *domain)
{
struct amd_iommu *iommu;
int i;

for (i = 0; i <= amd_iommu_last_bdf; ++i) {
if (amd_iommu_pd_table[i] == NULL)
if ((domain == NULL && amd_iommu_pd_table[i] == NULL) ||
(amd_iommu_pd_table[i] != domain))
continue;

iommu = amd_iommu_rlookup_table[i];
Expand All @@ -499,6 +500,11 @@ void amd_iommu_flush_all_devices(void)
}
}

void amd_iommu_flush_all_devices(void)
{
flush_devices_by_domain(NULL);
}

/****************************************************************************
*
* The functions below are used the create the page table mappings for
Expand Down

0 comments on commit ccb9062

Please sign in to comment.