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)
Oct 1 2024, 2:16 PM
Unknown Object (File)
Sep 22 2024, 12:33 PM
Unknown Object (File)
Sep 20 2024, 1:17 PM
Unknown Object (File)
Sep 20 2024, 12:37 PM
Unknown Object (File)
Sep 19 2024, 5:05 AM
Unknown Object (File)
Sep 19 2024, 5:03 AM
Unknown Object (File)
Sep 17 2024, 5:16 PM
Unknown Object (File)
Sep 11 2024, 10:18 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