[PATCH] RISC-V: Provide the frequency of mtime via hwprobe

Jessica Clarke jrtc27 at jrtc27.com
Tue Jun 18 10:11:04 PDT 2024


On 18 Jun 2024, at 12:46, Yunhui Cui <cuiyunhui at bytedance.com> wrote:
> 
> From: Palmer Dabbelt <palmer at rivosinc.com>
> 
> A handful of user-visible behavior is based on the frequency of the
> machine-mode time.
> 
> Signed-off-by: Palmer Dabbelt <palmer at rivosinc.com>
> Signed-off-by: Yunhui Cui <cuiyunhui at bytedance.com>

I would suggest referring to the user-mode CSR instead, i.e. “time”
rather than “mtime” throughout in names and descriptions, since that’s
the thing that user-mode software is actually reading from.

Jess




More information about the linux-riscv mailing list