forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
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)