Signed-off-by: FuangCao <cavan.cao@foxmail.com>
@@ -86,7 +86,7 @@ static u32 shark_timer_task_handler(void)
if (timer != &shark_timer_head) {
shark_timer_cancel(timer);
- timer->handler();
+ timer->handler(timer);
} else {
break;
}
@@ -12,7 +12,7 @@ typedef struct shark_timer {
u64 time;
struct shark_timer *prev;
struct shark_timer *next;
- void (*handler)(void);
+ void (*handler)(struct shark_timer *timer);
} shark_timer_t;
u64 shark_get_mseconds(void);