diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2014-03-09 21:52:37 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2014-03-24 15:06:51 +0100 |
commit | 8bbc4410129c0919e5943012489427c5e050a63e (patch) | |
tree | 74d6f163faed41487f224d2ac9c2449db6aa66a3 /drivers/iommu | |
parent | iommu/vt-d: Always store iommu in device_domain_info (diff) | |
download | linux-8bbc4410129c0919e5943012489427c5e050a63e.tar.xz linux-8bbc4410129c0919e5943012489427c5e050a63e.zip |
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/iommu')
-rw-r--r-- | drivers/iommu/intel-iommu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 8303f256fe84..dc322d0238a0 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; } |