Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125630
b: refs/heads/master
c: da49f6d
h: refs/heads/master
v: v3
  • Loading branch information
Joerg Roedel committed Jan 3, 2009
1 parent 83eb8aa commit 7bf8e78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f26508bbb76ce86aad1130ef6b7f1a4bb7de0c2
refs/heads/master: da49f6df726ecaaee87757e8b65a560679d32f99
6 changes: 6 additions & 0 deletions trunk/arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ static struct dma_ops_domain *find_protection_domain(u16 devid);
* Initialization code for statistics collection
*/

DECLARE_STATS_COUNTER(compl_wait);

static struct dentry *stats_dir;
static struct dentry *de_isolate;
static struct dentry *de_fflush;
Expand All @@ -88,6 +90,8 @@ static void amd_iommu_stats_init(void)

de_fflush = debugfs_create_bool("fullflush", 0444, stats_dir,
(u32 *)&amd_iommu_unmap_flush);

amd_iommu_stats_add(&compl_wait);
}

#endif
Expand Down Expand Up @@ -249,6 +253,8 @@ static void __iommu_wait_for_completion(struct amd_iommu *iommu)
unsigned status = 0;
unsigned long i = 0;

INC_STATS_COUNTER(compl_wait);

while (!ready && (i < EXIT_LOOP_COUNT)) {
++i;
/* wait for the bit to become one */
Expand Down

0 comments on commit 7bf8e78

Please sign in to comment.