projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a8f40e
)
iommu/vt-d: Simplify iommu check in domain_remove_one_dev_info()
author
David Woodhouse
<David.Woodhouse@intel.com>
Sun, 9 Mar 2014 20:52:37 +0000
(13:52 -0700)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Mon, 24 Mar 2014 14:06:51 +0000
(14:06 +0000)
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>
drivers/iommu/intel-iommu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/intel-iommu.c
b/drivers/iommu/intel-iommu.c
index 8303f256fe84181ccc538bdf1486f46c69a13808..dc322d0238a07bc36b90c213a214090d44387f3f 100644
(file)
--- 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;
}