From 12be40e22aae582cca9abbd151031edaab800cae Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 23 May 2022 23:00:55 +0300 Subject: start writing documentation --- common/timer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common/timer.c') diff --git a/common/timer.c b/common/timer.c index 0a11dc8..f36c90d 100644 --- a/common/timer.c +++ b/common/timer.c @@ -133,13 +133,15 @@ struct timer *find_timer(id_t cid) return 0; } -void remove_timer(struct timer *t) +stat_t remove_timer(struct timer *t) { if (!t) return; struct sp_node *n = &timer_node_container(t)->sp_n; sp_remove(&sp_root(__cpu_timers()), n); + + return OK; } ticks_t nsecs_to_ticks(tunit_t nsecs) -- cgit v1.3