hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/tools/perf/util/intlist.h
....@@ -45,7 +45,7 @@
4545 /* For intlist iteration */
4646 static inline struct int_node *intlist__first(struct intlist *ilist)
4747 {
48
- struct rb_node *rn = rb_first(&ilist->rblist.entries);
48
+ struct rb_node *rn = rb_first_cached(&ilist->rblist.entries);
4949 return rn ? rb_entry(rn, struct int_node, rb_node) : NULL;
5050 }
5151 static inline struct int_node *intlist__next(struct int_node *in)