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)
Sun, Feb 22, 12:27 AM
Unknown Object (File)
Sat, Feb 21, 12:55 PM
Unknown Object (File)
Thu, Feb 19, 5:50 PM
Unknown Object (File)
Sun, Feb 8, 10:01 AM
Unknown Object (File)
Sun, Feb 8, 6:38 AM
Unknown Object (File)
Jan 31 2026, 12:39 AM
Unknown Object (File)
Jan 21 2026, 5:09 PM
Unknown Object (File)
Jan 20 2026, 1:07 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable