aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorUros Bizjak <[email protected]>2024-05-22 10:26:48 +0200
committerJoerg Roedel <[email protected]>2024-06-25 14:20:53 +0200
commit5c555f1f1c31f7dd60a7697be9bb0e98706bb10a (patch)
treeeb1b86466a506f7949a2d34ee6528ddf44c32b0b /lib/memory-notifier-error-inject.c
parent83a7eefedc9b56fe7bfeff13b6c7356688ffa670 (diff)
iommu/vt-d: Use try_cmpxchg64() in intel_pasid_get_entry()
Use try_cmpxchg64() instead of cmpxchg64 (*ptr, old, new) != old in intel_pasid_get_entry(). cmpxchg returns success in ZF flag, so this change saves a compare after cmpxchg (and related move instruction in front of cmpxchg). Signed-off-by: Uros Bizjak <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Lu Baolu <[email protected]> Cc: Joerg Roedel <[email protected]> Cc: Will Deacon <[email protected]> Cc: Robin Murphy <[email protected]> Reviewed-by: Lu Baolu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions