From: David Woodhouse Date: Wed, 1 Jul 2009 19:27:03 +0000 (+0100) Subject: intel-iommu: Use cmpxchg64_local() for setting PTEs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7766a3fb905f0b078b05f5d6a6be8df4c64b9f51;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git intel-iommu: Use cmpxchg64_local() for setting PTEs Signed-off-by: David Woodhouse --- diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c index 2bbc3fc88dc..2c1b2babfdc 100644 --- a/drivers/pci/intel-iommu.c +++ b/drivers/pci/intel-iommu.c @@ -1682,7 +1682,7 @@ static int __domain_mapping(struct dmar_domain *domain, unsigned long iov_pfn, /* We don't need lock here, nobody else * touches the iova range */ - tmp = cmpxchg64(&pte->val, 0ULL, pteval); + tmp = cmpxchg64_local(&pte->val, 0ULL, pteval); if (tmp) { static int dumps = 5; printk(KERN_CRIT "ERROR: DMA PTE for vPFN 0x%lx already set (to %llx not %llx)\n",