浏览代码

iommu/amd: Init stats for iommu=pt

The IOMMUv2 driver added a few statistic counter which are
interesting in the iommu=pt mode too. So initialize the
statistic counter for that mode too.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Joerg Roedel 13 年之前
父节点
当前提交
2655d7a297
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/iommu/amd_iommu.c

+ 2 - 0
drivers/iommu/amd_iommu.c

@@ -3238,6 +3238,8 @@ int __init amd_iommu_init_passthrough(void)
 		attach_device(&dev->dev, pt_domain);
 	}
 
+	amd_iommu_stats_init();
+
 	pr_info("AMD-Vi: Initialized for Passthrough Mode\n");
 
 	return 0;