summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorYunfeng Ye <yeyunfeng@huawei.com>2021-12-09 04:42:25 +0300
committerCatalin Marinas <catalin.marinas@arm.com>2021-12-10 21:24:19 +0300
commita3a5b763410c7bceacf41a52071134d9dc26202a (patch)
tree69da3a9f6dc45b28525dcfb61a929e419d1fe08d /tools/perf/scripts/python/export-to-postgresql.py
parent7afccde389dcfaca793a0d909f8cb7412e1d1dbe (diff)
downloadlinux-a3a5b763410c7bceacf41a52071134d9dc26202a.tar.xz
arm64: mm: Rename asid2idx() to ctxid2asid()
The commit 0c8ea531b774 ("arm64: mm: Allocate ASIDs in pairs") introduce the asid2idx and idx2asid macro, but these macros are not really useful after the commit f88f42f853a8 ("arm64: context: Free up kernel ASIDs if KPTI is not in use"). The code "(asid & ~ASID_MASK)" can be instead by a macro, which is the same code with asid2idx(). So rename it to ctxid2asid() for a better understanding. Also we add asid2ctxid() macro, the contextid can be generated based on the asid and generation through this macro. Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com> Reviewed-by: Kefeng Wang <wangkefeng.wang@huawei.com> Link: https://lore.kernel.org/r/c31516eb-6d15-94e0-421c-305fc010ea79@huawei.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions