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)
Fri, Apr 5, 8:47 AM
Unknown Object (File)
Feb 21 2024, 6:25 PM
Unknown Object (File)
Feb 10 2024, 9:22 PM
Unknown Object (File)
Dec 23 2023, 2:05 AM
Unknown Object (File)
Dec 13 2023, 3:21 PM
Unknown Object (File)
Dec 12 2023, 10:07 AM
Unknown Object (File)
Nov 19 2023, 6:13 PM
Unknown Object (File)
Nov 19 2023, 6:13 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