/* This function adds a protection domain to the global protection domain list  */
static void add_domain_to_list(struct protection_domain *domain)
/* This function adds a protection domain to the global protection domain list  */
static void add_domain_to_list(struct protection_domain *domain)
{
	unsigned long flags;
	spin_lock_irqsave(&amd_iommu_pd_lock, flags);
	list_add(&domain->list, &amd_iommu_pd_list);
	spin_unlock_irqrestore(&amd_iommu_pd_lock, flags);
}