summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2019-06-10 13:41:07 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2019-06-10 13:55:34 +0100
commit9b604722059039a1a3ff69fb8dfd024264046024 (patch)
tree1e4a434e73e4d583d935a5b3e34825c0dd0fb86a /tools/perf/scripts/python/exported-sql-viewer.py
parent4745224b45097d333358bce298aea2137246183c (diff)
arm64: mm: avoid redundant READ_ONCE(*ptep)
In set_pte_at(), we read the old pte value so that it can be passed into checks for racy hw updates. These checks are only performed for CONFIG_DEBUG_VM, and the value is not used otherwise. Since we read the pte value with READ_ONCE(), the compiler cannot elide the redundant read for !CONFIG_DEBUG_VM kernels. Let's ameliorate matters by moving the read and the checks into a helper, __check_racy_pte_update(), which only performs the read when the value will be used. This also allows us to reformat the conditions for clarity. Acked-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions