diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2009-07-01 15:27:03 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-07-01 15:27:03 -0400 |
commit | 7766a3fb905f0b078b05f5d6a6be8df4c64b9f51 (patch) | |
tree | 57345b5cf47f50cdc3ba09f4746834e77d22817e /drivers | |
parent | 85b98276f2ffa66b25ae6328b00bfadfd74b74e7 (diff) |
intel-iommu: Use cmpxchg64_local() for setting PTEs
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/intel-iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c index 2bbc3fc88dc9..2c1b2babfdc5 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, | |||
1682 | /* We don't need lock here, nobody else | 1682 | /* We don't need lock here, nobody else |
1683 | * touches the iova range | 1683 | * touches the iova range |
1684 | */ | 1684 | */ |
1685 | tmp = cmpxchg64(&pte->val, 0ULL, pteval); | 1685 | tmp = cmpxchg64_local(&pte->val, 0ULL, pteval); |
1686 | if (tmp) { | 1686 | if (tmp) { |
1687 | static int dumps = 5; | 1687 | static int dumps = 5; |
1688 | printk(KERN_CRIT "ERROR: DMA PTE for vPFN 0x%lx already set (to %llx not %llx)\n", | 1688 | printk(KERN_CRIT "ERROR: DMA PTE for vPFN 0x%lx already set (to %llx not %llx)\n", |