| 140 | } |
| 141 | |
| 142 | static void timers_far_get(struct timers *timers, |
| 143 | struct list_head *list, |
| 144 | uint64_t when) |
| 145 | { |
| 146 | struct timer *i, *next; |
| 147 | |
| 148 | list_for_each_safe(&timers->far, i, next, list) { |
| 149 | if (i->time <= when) { |
| 150 | list_del_from(&timers->far, &i->list); |
| 151 | list_add_tail(list, &i->list); |
| 152 | } |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | static void add_level(struct timers *timers, unsigned int level) |
| 157 | { |
no test coverage detected