diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2011-12-22 06:35:38 -0500 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2011-12-22 08:56:56 -0500 |
commit | 2655d7a29703f29d4b6b8e4ee1f4d682b3b28f9c (patch) | |
tree | 34b98c50eb910a4e1bdf1bb9faec83c5b7043bfb /drivers/iommu | |
parent | 31342b58b72b2b8480f12ffee648c8ba3297dee1 (diff) |
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>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/amd_iommu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 03944e76b70..edd291070b0 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c | |||
@@ -3238,6 +3238,8 @@ int __init amd_iommu_init_passthrough(void) | |||
3238 | attach_device(&dev->dev, pt_domain); | 3238 | attach_device(&dev->dev, pt_domain); |
3239 | } | 3239 | } |
3240 | 3240 | ||
3241 | amd_iommu_stats_init(); | ||
3242 | |||
3241 | pr_info("AMD-Vi: Initialized for Passthrough Mode\n"); | 3243 | pr_info("AMD-Vi: Initialized for Passthrough Mode\n"); |
3242 | 3244 | ||
3243 | return 0; | 3245 | return 0; |