diff options
author | Yuqi Jin <[email protected]> | 2020-08-27 16:43:54 +0800 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2020-09-04 12:11:06 +0200 |
commit | ba328f82613260a098de7b4aff58743cd8733507 (patch) | |
tree | e5640a2d5d96de57d1d679e81804ac45f1fec9c7 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 4604393ca0c6e4a73c04798c3f1d9878e70b7251 (diff) |
iommu/iova: Replace cmpxchg with xchg in queue_iova
The performance of the atomic_xchg is better than atomic_cmpxchg because
no comparison is required. While the value of @fq_timer_on can only be 0
or 1. Let's use atomic_xchg instead of atomic_cmpxchg here because we
only need to check that the value changes from 0 to 1 or from 1 to 1.
Signed-off-by: Yuqi Jin <[email protected]>
Signed-off-by: Shaokun Zhang <[email protected]>
Reviewed-by: Robin Murphy <[email protected]>
Cc: Joerg Roedel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions