| 64 | } |
| 65 | |
| 66 | static unsigned int level_of(const struct timers *timers, uint64_t time) |
| 67 | { |
| 68 | uint64_t diff; |
| 69 | |
| 70 | /* Level depends how far away it is. */ |
| 71 | diff = time - timers->base; |
| 72 | return ilog64(diff / 2) / TIMER_LEVEL_BITS; |
| 73 | } |
| 74 | |
| 75 | static void timer_add_raw(struct timers *timers, struct timer *t) |
| 76 | { |
no test coverage detected