[Patch Part1 V2 11/20] iommu/vt-d, trivial: simplify code with existing macros

2013-12-05 Thread Jiang Liu
Simplify vt-d related code with existing macros and introduce a new macro for_each_active_drhd_unit() to enumerate all active DRHD unit. Signed-off-by: Jiang Liu --- drivers/iommu/dmar.c|7 ++--- drivers/iommu/intel-iommu.c | 55 ---

[Patch Part1 V2 11/20] iommu/vt-d, trivial: simplify code with existing macros

2013-12-05 Thread Jiang Liu
Simplify vt-d related code with existing macros and introduce a new macro for_each_active_drhd_unit() to enumerate all active DRHD unit. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/iommu/dmar.c|7 ++--- drivers/iommu/intel-iommu.c | 55