Page MenuHomeFreeBSD

riscv timer: remove intermediate helper
ClosedPublic

Authored by mhorne on Jun 13 2022, 11:26 AM.
Tags
None
Referenced Files
F102792253: D35461.diff
Sun, Nov 17, 6:31 AM
Unknown Object (File)
Oct 1 2024, 2:16 PM
Unknown Object (File)
Sep 22 2024, 12:33 PM
Unknown Object (File)
Sep 20 2024, 1:17 PM
Unknown Object (File)
Sep 20 2024, 12:37 PM
Unknown Object (File)
Sep 19 2024, 5:05 AM
Unknown Object (File)
Sep 19 2024, 5:03 AM
Unknown Object (File)
Sep 17 2024, 5:16 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