diff options
author | Bibo Mao <maobibo@loongson.cn> | 2024-03-06 09:12:13 +0800 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2024-03-06 09:12:13 +0800 |
commit | 8bc15d02d5fdff31bfeca02e58e22e26880dde39 (patch) | |
tree | c3188804545239f6e62cef87efa565570280cec1 /arch/parisc/mm | |
parent | aebd3bd586c67a29ddbe7be7db06b45754477b52 (diff) |
LoongArch: KVM: Start SW timer only when vcpu is blocking
SW timer is enabled when vcpu thread is scheduled out, and it is to wake
up vcpu from blocked queue. If vcpu thread is scheduled out but is not
blocked, such as it is preempted by other threads, it is not necessary
to enable SW timer. Since vcpu thread is still on running queue if it is
preempted and SW timer is only to wake up vcpu on blocking queue, so SW
timer is not useful in this situation.
This patch enables SW timer only when vcpu is scheduled out and is
blocking.
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/parisc/mm')
0 files changed, 0 insertions, 0 deletions