aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2024-01-29 08:11:24 -1000
committerTejun Heo <tj@kernel.org>2024-01-29 08:11:24 -1000
commitafa87ce85379e2d93863fce595afdb5771a84004 (patch)
tree6a13b1efe8131676429118e099643828c13fc392 /scripts/generate_rust_analyzer.py
parentworkqueue: Move pwq->max_active to wq->max_active (diff)
downloadlinux-rng-afa87ce85379e2d93863fce595afdb5771a84004.tar.xz
linux-rng-afa87ce85379e2d93863fce595afdb5771a84004.zip
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 <tj@kernel.org> Reviewed-by: Lai Jiangshan <jiangshanlai@gmail.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions