summaryrefslogtreecommitdiff
path: root/drivers/iommu
diff options
context:
space:
mode:
authorJinyu Qi <jinyuqi@huawei.com>2019-04-03 11:35:21 +0300
committerJoerg Roedel <jroedel@suse.de>2019-04-11 16:42:54 +0300
commit14bd9a607f9082e7b5690c27e69072f2aeae0de4 (patch)
tree8c99d5e23e98970f5c938a29d41b1dfa0596fceb /drivers/iommu
parent8cec63e52966b6c1242f8323535532d791d440e8 (diff)
downloadlinux-14bd9a607f9082e7b5690c27e69072f2aeae0de4.tar.xz
iommu/iova: Separate atomic variables to improve performance
In struct iova_domain, there are three atomic variables, the former two are about TLB flush counters which use atomic_add operation, anoter is used to flush timer that use cmpxhg operation. These variables are in the same cache line, so it will cause some performance loss under the condition that many cores call queue_iova function, Let's isolate the two type atomic variables to different cache line to reduce cache line conflict. Cc: Joerg Roedel <joro@8bytes.org> Signed-off-by: Jinyu Qi <jinyuqi@huawei.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu')
0 files changed, 0 insertions, 0 deletions