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)
Mon, Aug 10, 5:09 PM
Unknown Object (File)
Mon, Aug 10, 12:45 PM
Unknown Object (File)
Mon, Aug 10, 12:19 PM
Unknown Object (File)
Tue, Aug 4, 9:48 AM
Unknown Object (File)
Tue, Jul 28, 12:02 PM
Unknown Object (File)
Tue, Jul 21, 4:34 AM
Unknown Object (File)
Sun, Jul 19, 2:34 PM
Unknown Object (File)
Sat, Jul 18, 10:11 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