aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLai Jiangshan <[email protected]>2014-05-20 09:46:32 +0000
committerTejun Heo <[email protected]>2014-05-20 14:59:31 +0000
commit7cda9aae0596d871a8d7a6888d7b447c60e5ab30 (patch)
tree5d450fd3e3fa5ea46d888543731bd027074e2961 /tools/perf/scripts/python
parentworkqueue: separate iteration role from worker_idr (diff)
downloadkernel-7cda9aae0596d871a8d7a6888d7b447c60e5ab30.tar.gz
kernel-7cda9aae0596d871a8d7a6888d7b447c60e5ab30.zip
workqueue: convert worker_idr to worker_ida
We no longer iterate workers via worker_idr and worker_idr is used only for allocating/freeing ID, so we can convert it to worker_ida. By using ida_simple_get/remove(), worker_ida doesn't require external synchronization, so we don't need manager_mutex to protect it and the ID-removal code is allowed to be moved out from worker_detach_from_pool(). In a later patch, worker_detach_from_pool() will be used in rescuers which don't have IDs, so we move the ID-removal code out from worker_detach_from_pool() into worker_thread(). tj: Minor description updates. Signed-off-by: Lai Jiangshan <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions