Page MenuHomeFreeBSD

riscv timer: remove intermediate helper
ClosedPublic

Authored by mhorne on Jun 13 2022, 11:26 AM.
Tags
None
Referenced Files
F163220608: D35461.id107319.diff
Tue, Jul 21, 4:34 AM
Unknown Object (File)
Sun, Jul 19, 2:34 PM
Unknown Object (File)
Sat, Jul 18, 10:11 AM
Unknown Object (File)
Sun, Jul 12, 8:24 PM
Unknown Object (File)
Sat, Jul 4, 3:42 AM
Unknown Object (File)
Fri, Jul 3, 1:17 AM
Unknown Object (File)
Sat, Jun 27, 9:29 AM
Unknown Object (File)
Sat, Jun 27, 9:29 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