Skip to content

Commit

Permalink
iommu/amd: Init stats for iommu=pt
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joerg Roedel committed Dec 22, 2011
1 parent 31342b5 commit 2655d7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/iommu/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2655d7a

Please sign in to comment.