diff options
author | Joerg Roedel <jroedel@suse.de> | 2016-05-09 16:58:37 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2016-05-09 16:58:37 +0200 |
commit | e85e8f69cedb5fbc7cd16f56dd97220e61ed616e (patch) | |
tree | b84639279878725f694f5d88b9ff6241ace93dfc /drivers/iommu/amd_iommu_types.h | |
parent | fd6c50ee3af3935d8dfa38b0a81b2386fd915cfe (diff) | |
download | linux-e85e8f69cedb5fbc7cd16f56dd97220e61ed616e.tar.gz linux-e85e8f69cedb5fbc7cd16f56dd97220e61ed616e.tar.xz |
iommu/amd: Remove statistics code
The statistics are not really used for anything and should
be replaced by generic and per-device statistic counters.
Remove the code for now.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/amd_iommu_types.h')
-rw-r--r-- | drivers/iommu/amd_iommu_types.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/iommu/amd_iommu_types.h b/drivers/iommu/amd_iommu_types.h index b6b14d288b0b..590956ac704e 100644 --- a/drivers/iommu/amd_iommu_types.h +++ b/drivers/iommu/amd_iommu_types.h @@ -682,30 +682,4 @@ static inline int get_hpet_devid(int id) return -EINVAL; } -#ifdef CONFIG_AMD_IOMMU_STATS - -struct __iommu_counter { - char *name; - struct dentry *dent; - u64 value; -}; - -#define DECLARE_STATS_COUNTER(nm) \ - static struct __iommu_counter nm = { \ - .name = #nm, \ - } - -#define INC_STATS_COUNTER(name) name.value += 1 -#define ADD_STATS_COUNTER(name, x) name.value += (x) -#define SUB_STATS_COUNTER(name, x) name.value -= (x) - -#else /* CONFIG_AMD_IOMMU_STATS */ - -#define DECLARE_STATS_COUNTER(name) -#define INC_STATS_COUNTER(name) -#define ADD_STATS_COUNTER(name, x) -#define SUB_STATS_COUNTER(name, x) - -#endif /* CONFIG_AMD_IOMMU_STATS */ - #endif /* _ASM_X86_AMD_IOMMU_TYPES_H */ |