summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2014-03-09 13:52:37 -0700
committerDavid Woodhouse <David.Woodhouse@intel.com>2014-03-24 14:06:51 +0000
commit8bbc4410129c0919e5943012489427c5e050a63e (patch)
tree74d6f163faed41487f224d2ac9c2449db6aa66a3 /drivers
parent5a8f40e8c8801a9805bbe60d140ed2b0b3b91d18 (diff)
downloadop-kernel-dev-8bbc4410129c0919e5943012489427c5e050a63e.zip
op-kernel-dev-8bbc4410129c0919e5943012489427c5e050a63e.tar.gz
iommu/vt-d: Simplify iommu check in domain_remove_one_dev_info()
Now we store the iommu in the device_domain_info, we don't need to do a lookup. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iommu/intel-iommu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 8303f25..dc322d0 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -4056,8 +4056,7 @@ static void domain_remove_one_dev_info(struct dmar_domain *domain,
* owned by this domain, clear this iommu in iommu_bmp
* update iommu count and coherency
*/
- if (iommu == device_to_iommu(info->segment, info->bus,
- info->devfn))
+ if (info->iommu == iommu)
found = 1;
}
OpenPOWER on IntegriCloud