iommu/vt-d: Removed unused iommu_count in dmar domain
authorParav Pandit <parav@nvidia.com>
Thu, 10 Jun 2021 02:01:12 +0000 (10:01 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 10 Jun 2021 07:06:14 +0000 (09:06 +0200)
commit74f6d776ae0b8498cfdb574ab24992bd50a2a2f1
treeab885dbf9ff739c68a0e32735072132af4fb9c98
parent1f106ff0ea2782a6bc49bb927e4789681a2ec507
iommu/vt-d: Removed unused iommu_count in dmar domain

DMAR domain uses per DMAR refcount. It is indexed by iommu seq_id.
Older iommu_count is only incremented and decremented but no decisions
are taken based on this refcount. This is not of much use.

Hence, remove iommu_count and further simplify domain_detach_iommu()
by returning void.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210530075053.264218-1-parav@nvidia.com
Link: https://lore.kernel.org/r/20210610020115.1637656-21-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c
include/linux/intel-iommu.h