iommu/amd: Init stats for iommu=pt
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 22 Dec 2011 11:35:38 +0000 (12:35 +0100)
committerJoerg Roedel <joerg.roedel@amd.com>
Thu, 22 Dec 2011 13:56:56 +0000 (14:56 +0100)
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>
drivers/iommu/amd_iommu.c

index 03944e76b7005051118b1b3efa12d8549a94f025..edd291070b0b926357b868858ec5023504228977 100644 (file)
@@ -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;
This page took 0.026688 seconds and 5 git commands to generate.