Maximum time covered by levels 0..@level (from base); saturates * once the range exceeds the representable 64 bits. */
| 156 | /* Maximum time covered by levels 0..@level (from base); saturates |
| 157 | * once the range exceeds the representable 64 bits. */ |
| 158 | static uint64_t level_max_time(const struct timers *timers, unsigned int level) |
| 159 | { |
| 160 | if ((level + 1) * TIMER_LEVEL_BITS >= 64) |
| 161 | return -1ULL; |
| 162 | return timers->base + (1ULL << ((level+1)*TIMER_LEVEL_BITS)) - 1; |
| 163 | } |
| 164 | |
| 165 | static void add_level(struct timers *timers, unsigned int level) |
| 166 | { |
no outgoing calls
no test coverage detected