* 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;
de_fflush = debugfs_create_bool("fullflush", 0444, stats_dir,
(u32 *)&amd_iommu_unmap_flush);
+
+ amd_iommu_stats_add(&compl_wait);
}
#endif
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 */