From 836026dbba64793afc0d2591ffdb6fb39b696977 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 21 May 2022 15:04:01 +0300 Subject: implement timers better --- common/timer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/timer.c') diff --git a/common/timer.c b/common/timer.c index da4fd11..0442c44 100644 --- a/common/timer.c +++ b/common/timer.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include @@ -27,6 +28,8 @@ static struct sp_root *__cpu_timers() void init_timer(const void *fdt) { ticks_per_sec = stat_timer(fdt); + info("ticks_per_sec: %" PRIu64 "\n", ticks_per_sec); + info("current ticks: %" PRIu64 "\n", current_ticks()); init_nodes(&node_root, sizeof(struct timer_node)); } -- cgit v1.3