diff options
| author | Ricardo Martinez <[email protected]> | 2022-05-06 11:12:57 -0700 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-05-09 10:51:58 +0100 |
| commit | 2fbdf45d7d26361a0c3ec8833fd96edf0f5812da (patch) | |
| tree | 656bac038c34f0ba955ddb466d39d32cc0a9acde /tools/perf/scripts/python/sched-migration.py | |
| parent | c908565eecf2d310edddaecea6166015abe9df08 (diff) | |
list: Add list_next_entry_circular() and list_prev_entry_circular()
Add macros to get the next or previous entries and wraparound if
needed. For example, calling list_next_entry_circular() on the last
element should return the first element in the list.
Signed-off-by: Ricardo Martinez <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions