Commit d709d6db authored by Bibo Mao's avatar Bibo Mao Committed by openeuler-sync-bot
Browse files

loongarch/kvm: Fix oneshot timer emulation

LoongArch inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8I3QU



------------------------------------------

When oneshot timer is fired, CSR TVAL will be -1 rather than 0.
It is not remaining timer ticks for expired time. There needs
special handing for this situation.

With this patch, runltp with version ltp20230516 passes to run
in vm.

Signed-off-by: default avatarBibo Mao <maobibo@loongson.cn>
(cherry picked from commit 1bddc4cd)
parent 730c627d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment