]> git.itanic.dy.fi Git - linux-stable/blobdiff - include/linux/dmar.h
iommu/vt-d: Introduce a rwsem to protect global data structures
[linux-stable] / include / linux / dmar.h
index 4b77fd8fde7643fdc21cf8561ba42b22feae5d30..8f06a0135a84136aed77e6a75bdc72481985c13f 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/types.h>
 #include <linux/msi.h>
 #include <linux/irqreturn.h>
+#include <linux/rwsem.h>
 
 struct acpi_dmar_header;
 
@@ -48,6 +49,7 @@ struct dmar_drhd_unit {
        struct intel_iommu *iommu;
 };
 
+extern struct rw_semaphore dmar_global_lock;
 extern struct list_head dmar_drhd_units;
 
 #define for_each_drhd_unit(drhd) \