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, Apr 8, 11:04 AM
Unknown Object (File)
Mon, Mar 24, 5:57 AM
Unknown Object (File)
Sat, Mar 15, 1:21 PM
Unknown Object (File)
Feb 14 2025, 3:11 AM
Unknown Object (File)
Feb 13 2025, 1:47 PM
Unknown Object (File)
Jan 17 2025, 9:01 PM
Unknown Object (File)
Dec 3 2024, 1:06 PM
Unknown Object (File)
Nov 23 2024, 12:41 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