AMD IOMMU: add stats counter for free_coherent requests

Impact: see number of free_coherent requests in debugfs

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>

+4
+4
arch/x86/kernel/amd_iommu.c
··· 70 70 DECLARE_STATS_COUNTER(cnt_map_sg); 71 71 DECLARE_STATS_COUNTER(cnt_unmap_sg); 72 72 DECLARE_STATS_COUNTER(cnt_alloc_coherent); 73 + DECLARE_STATS_COUNTER(cnt_free_coherent); 73 74 74 75 static struct dentry *stats_dir; 75 76 static struct dentry *de_isolate; ··· 103 102 amd_iommu_stats_add(&cnt_map_sg); 104 103 amd_iommu_stats_add(&cnt_unmap_sg); 105 104 amd_iommu_stats_add(&cnt_alloc_coherent); 105 + amd_iommu_stats_add(&cnt_free_coherent); 106 106 } 107 107 108 108 #endif ··· 1542 1540 struct amd_iommu *iommu; 1543 1541 struct protection_domain *domain; 1544 1542 u16 devid; 1543 + 1544 + INC_STATS_COUNTER(cnt_free_coherent); 1545 1545 1546 1546 if (!check_device(dev)) 1547 1547 return;