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, Nov 24, 11:53 PM
Unknown Object (File)
Mon, Nov 24, 11:47 PM
Unknown Object (File)
Thu, Nov 13, 3:43 AM
Unknown Object (File)
Sun, Nov 2, 1:42 AM
Unknown Object (File)
Wed, Oct 29, 5:30 PM
Unknown Object (File)
Wed, Oct 29, 4:58 PM
Unknown Object (File)
Wed, Oct 29, 4:55 PM
Unknown Object (File)
Oct 26 2025, 6:59 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