diff options
author | Tejun Heo <[email protected]> | 2024-01-29 08:11:24 -1000 |
---|---|---|
committer | Tejun Heo <[email protected]> | 2024-01-29 08:11:24 -1000 |
commit | afa87ce85379e2d93863fce595afdb5771a84004 (patch) | |
tree | 6a13b1efe8131676429118e099643828c13fc392 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | a045a272d887575da17ad86d6573e82871b50c27 (diff) |
workqueue: Factor out pwq_is_empty()
"!pwq->nr_active && list_empty(&pwq->inactive_works)" test is repeated
multiple times. Let's factor it out into pwq_is_empty().
Signed-off-by: Tejun Heo <[email protected]>
Reviewed-by: Lai Jiangshan <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions