summaryrefslogtreecommitdiff
path: root/include/linux/mvebu-pmsu.h
diff options
context:
space:
mode:
authorLu Baolu <baolu.lu@linux.intel.com>2022-07-12 03:09:06 +0300
committerJoerg Roedel <jroedel@suse.de>2022-07-15 11:21:42 +0300
commit97a79de99a4083056184bd4790723fe64c3fba66 (patch)
treea875bef9e465c7bbed52e318dcf2d72a5663edad /include/linux/mvebu-pmsu.h
parentba949f4cd4c39c587e9b722ac7eb7f7e8a42dace (diff)
downloadlinux-97a79de99a4083056184bd4790723fe64c3fba66.tar.xz
iommu/vt-d: Remove unnecessary check in intel_iommu_add()
The Intel IOMMU hot-add process starts from dmar_device_hotplug(). It uses the global dmar_global_lock to synchronize all the hot-add and hot-remove paths. In the hot-add path, the new IOMMU data structures are allocated firstly by dmar_parse_one_drhd() and then initialized by dmar_hp_add_drhd(). All the IOMMU units are allocated and initialized in the same synchronized path. There is no case where any IOMMU unit is created and then initialized for multiple times. This removes the unnecessary check in intel_iommu_add() which is the last reference place of the global IOMMU array. Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Reviewed-by: Steve Wahl <steve.wahl@hpe.com> Link: https://lore.kernel.org/r/20220702015610.2849494-5-baolu.lu@linux.intel.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux/mvebu-pmsu.h')
0 files changed, 0 insertions, 0 deletions