Page MenuHomeFreeBSD

riscv timer: remove intermediate helper
ClosedPublic

Authored by mhorne on Jun 13 2022, 11:26 AM.
Tags
None
Referenced Files
F116264233: D35461.diff
Sun, May 4, 1:09 PM
Unknown Object (File)
Mon, Apr 21, 10:54 PM
Unknown Object (File)
Fri, Apr 18, 4:11 AM
Unknown Object (File)
Tue, Apr 8, 11:04 AM
Unknown Object (File)
Mar 24 2025, 5:57 AM
Unknown Object (File)
Mar 15 2025, 1:21 PM
Unknown Object (File)
Feb 14 2025, 3:11 AM
Unknown Object (File)
Feb 13 2025, 1:47 PM
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