hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
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)