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)
Tue, Jan 13, 4:22 AM
Unknown Object (File)
Mon, Dec 29, 6:26 AM
Unknown Object (File)
Sat, Dec 20, 4:53 PM
Unknown Object (File)
Sat, Dec 20, 8:13 AM
Unknown Object (File)
Dec 13 2025, 12:48 AM
Unknown Object (File)
Nov 24 2025, 11:53 PM
Unknown Object (File)
Nov 24 2025, 11:47 PM
Unknown Object (File)
Nov 13 2025, 3:43 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