diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-21 15:04:01 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-21 15:04:01 +0300 |
| commit | 836026dbba64793afc0d2591ffdb6fb39b696977 (patch) | |
| tree | 214cab6c75ac15785a20728bde406e70797f5229 /common/timer.c | |
| parent | 1ea7d9dec1b460ab76dfd6270596c8138c9c2b40 (diff) | |
| download | kmi-836026dbba64793afc0d2591ffdb6fb39b696977.tar.gz kmi-836026dbba64793afc0d2591ffdb6fb39b696977.zip | |
implement timers better
Diffstat (limited to 'common/timer.c')
| -rw-r--r-- | common/timer.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <apos/nodes.h> #include <apos/utils.h> #include <apos/timer.h> +#include <apos/debug.h> #include <arch/timer.h> #include <arch/cpu.h> @@ -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)); } |
