Commit 5a207893 authored by Anup Patel's avatar Anup Patel Committed by Anup Patel
Browse files

clocksource: timer-riscv: Don't enable/disable timer interrupt



Currently, we enable/disable timer interrupt at runtime to start/stop
timer events. This makes timer interrupt state go out-of-sync with
the Linux interrupt subsystem.

To address the above issue, we can stop a per-HART timer interrupt by
setting U64_MAX in timecmp CSR (or sbi_set_timer()) at time handling
timer interrupt.

Signed-off-by: default avatarAnup Patel <apatel@ventanamicro.com>
parent a09b1d7c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment