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)
Wed, Mar 25, 8:29 AM
Unknown Object (File)
Sun, Mar 22, 6:02 AM
Unknown Object (File)
Sun, Mar 22, 12:24 AM
Unknown Object (File)
Thu, Mar 19, 4:39 AM
Unknown Object (File)
Feb 22 2026, 12:27 AM
Unknown Object (File)
Feb 21 2026, 12:55 PM
Unknown Object (File)
Feb 19 2026, 5:50 PM
Unknown Object (File)
Feb 8 2026, 10:01 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45947
Build 42835: arc lint + arc unit