Page MenuHomeFreeBSD

riscv timer: remove intermediate helper
ClosedPublic

Authored by mhorne on Jun 13 2022, 11:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 14, 12:25 AM
Unknown Object (File)
Tue, Oct 14, 12:25 AM
Unknown Object (File)
Tue, Oct 14, 12:24 AM
Unknown Object (File)
Mon, Oct 13, 10:49 AM
Unknown Object (File)
Mon, Oct 13, 1:35 AM
Unknown Object (File)
Mon, Sep 29, 12:53 AM
Unknown Object (File)
Sep 13 2025, 5:32 AM
Unknown Object (File)
Aug 15 2025, 12:12 AM
Subscribers

Details

Summary

get_counts() doesn't do anything at the moment but return the result of
get_cycles(), so remove it.

For clarity, rename get_cycles() to get_timecount(); RISC-V defines
separate time and cyclecount CSRs, so let's avoid confusing the two.
They may be backed by the same underlying clock, but this is an
implementation detail.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable