summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJinyu Tang <jinyu.tang@linux.dev>2026-08-14 08:35:41 -0400
committerAnup Patel <anup@brainfault.org>2026-10-03 11:42:50 +0530
commita84c5e0c31462588d2ec0fba17d9380ed9be6fcf (patch)
tree28c75bd7f1ed3f9afd5f41a517e1f61391a58825 /tools/perf/scripts/python/export-to-postgresql.py
parent165a50429e9f319e4a3bbc396cbec7c3f336ae5f (diff)
KVM: riscv: Avoid redundant interrupt check for pending timers
The kvm_vcpu_check_block() calls kvm_arch_vcpu_runnable() before checking whether a timer is pending. On RISC-V, kvm_arch_vcpu_runnable() already checks all pending guest interrupts through kvm_riscv_vcpu_has_interrupts(vcpu, -1UL), including IRQ_VS_TIMER. Drop the repeated IRQ_VS_TIMER pending-interrupt check from kvm_riscv_vcpu_timer_pending() and keep the helper focused on the timer deadline state. If the timer becomes pending after the runnable check, the timer path still injects IRQ_VS_TIMER and kicks the vCPU through the normal wakeup path. Signed-off-by: Jinyu Tang <jinyu.tang@linux.dev> Reviewed-by: Nutty Liu <nutty.liu@hotmail.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260814123541.593613-1-jinyu.tang@linux.dev Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions