commit 511885d7061e ("lib/timerqueue: Rely on rbtree semantics for next timer") changed struct timerqueue_head, and so print_active_timers() should be changed accordingly with its way to interpret the structure.
Unified · Split
| @@ -43,8 +43,7 @@ def print_timer(rb_node, idx): · 42 unmodified lines | |||
| 43 | 43 | ||
| 44 | 44 | ||
| 45 | def print_active_timers(base): | 45 | def print_active_timers(base): |
| 46 | curr = base['active']['next']['node'] | 46 | curr = base['active']['rb_root']['rb_leftmost'] |
| 47 | curr = curr.address.cast(rbtree.rb_node_type.get_type().pointer()) | ||
| 48 | idx = 0 | 47 | idx = 0 |
| 49 | while curr: | 48 | while curr: |
| 50 | yield print_timer(curr, idx) | 49 | yield print_timer(curr, idx) |