]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf: riscv: skip empty batches in counter start
authorYunhui Cui <cuiyunhui@bytedance.com>
Mon, 4 Aug 2025 02:51:10 +0000 (10:51 +0800)
committerPaul Walmsley <pjw@kernel.org>
Fri, 19 Sep 2025 01:28:13 +0000 (19:28 -0600)
commit568a2fa10dd06bbd8160e3f8cce9483fabcb7121
tree3e72decc86753b40e9e40446eb4effeee53934f4
parentf68cd7ddd014b60451922207bff2ea3beea0d8cb
perf: riscv: skip empty batches in counter start

Avoid unnecessary SBI calls when starting non-overflowed counters
in pmu_sbi_start_ovf_ctrs_sbi() by checking ctr_start_mask.

Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20250804025110.11088-1-cuiyunhui@bytedance.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
drivers/perf/riscv_pmu_sbi.c