Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125631
b: refs/heads/master
c: 0f2a86f
h: refs/heads/master
i:
  125629: 83eb8aa
  125627: 907076b
  125623: dc4306a
  125615: 5cf5466
  125599: b06db55
  125567: 01a407c
v: v3
  • Loading branch information
Joerg Roedel committed Jan 3, 2009
1 parent 7bf8e78 commit 90871cd
Show file tree
Hide file tree
Showing 2 changed files with 5 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: da49f6df726ecaaee87757e8b65a560679d32f99
refs/heads/master: 0f2a86f200bc97ae6cefc5d3ac879094b3fcde48
4 changes: 4 additions & 0 deletions trunk/arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ static struct dma_ops_domain *find_protection_domain(u16 devid);
*/

DECLARE_STATS_COUNTER(compl_wait);
DECLARE_STATS_COUNTER(cnt_map_single);

static struct dentry *stats_dir;
static struct dentry *de_isolate;
Expand Down Expand Up @@ -92,6 +93,7 @@ static void amd_iommu_stats_init(void)
(u32 *)&amd_iommu_unmap_flush);

amd_iommu_stats_add(&compl_wait);
amd_iommu_stats_add(&cnt_map_single);
}

#endif
Expand Down Expand Up @@ -1278,6 +1280,8 @@ static dma_addr_t map_single(struct device *dev, phys_addr_t paddr,
dma_addr_t addr;
u64 dma_mask;

INC_STATS_COUNTER(cnt_map_single);

if (!check_device(dev))
return bad_dma_address;

Expand Down

0 comments on commit 90871cd

Please sign in to comment.