aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2016-07-23 19:27:50 +0100
committerPaul E. McKenney <[email protected]>2016-09-14 12:57:43 -0700
commit12adfd882c5f37548acaba4f043a158b3c54468b (patch)
tree83c46e074a1044db2364cd712111550c994c3bc8 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent3563a438f124cb0b8cfd350c86de2f26c63d8837 (diff)
list: Expand list_first_entry_or_null()
Due to the use of READ_ONCE() in list_empty() the compiler cannot optimise !list_empty() ? list_first_entry() : NULL very well. By manually expanding list_first_entry_or_null() we can take advantage of the READ_ONCE() to avoid the list element changing under the test while the compiler can generate smaller code. Signed-off-by: Chris Wilson <[email protected]> Cc: "Paul E. McKenney" <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Dan Williams <[email protected]> Cc: Jan Kara <[email protected]> Cc: Josef Bacik <[email protected]> Cc: [email protected] Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions