diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/dmar.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/dmar.h b/include/linux/dmar.h index 1a60dd630bb4..eccb0c0c6cf6 100644 --- a/include/linux/dmar.h +++ b/include/linux/dmar.h | |||
| @@ -53,6 +53,10 @@ extern struct list_head dmar_drhd_units; | |||
| 53 | #define for_each_drhd_unit(drhd) \ | 53 | #define for_each_drhd_unit(drhd) \ |
| 54 | list_for_each_entry(drhd, &dmar_drhd_units, list) | 54 | list_for_each_entry(drhd, &dmar_drhd_units, list) |
| 55 | 55 | ||
| 56 | #define for_each_active_drhd_unit(drhd) \ | ||
| 57 | list_for_each_entry(drhd, &dmar_drhd_units, list) \ | ||
| 58 | if (drhd->ignored) {} else | ||
| 59 | |||
| 56 | #define for_each_active_iommu(i, drhd) \ | 60 | #define for_each_active_iommu(i, drhd) \ |
| 57 | list_for_each_entry(drhd, &dmar_drhd_units, list) \ | 61 | list_for_each_entry(drhd, &dmar_drhd_units, list) \ |
| 58 | if (i=drhd->iommu, drhd->ignored) {} else | 62 | if (i=drhd->iommu, drhd->ignored) {} else |
