Commit 33734a1f authored by Mitchell Horne's avatar Mitchell Horne
Browse files

riscv timer: provide a function for cpu_ticks

This is cheaper than the default of tc_cpu_ticks().

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:
parent b82f4170
......@@ -219,6 +219,8 @@ riscv_timer_attach(device_t dev)
sc->et.et_priv = sc;
set_cputicker(get_timecount, sc->clkfreq, false);
return (0);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment