forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
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)