History

workqueue: factor out worker_pool from global_cwq

Move worklist and all worker management fields from global_cwq into the new struct worker_pool. worker_pool points back to the containing gcwq. worker and cpu_workqueue_struct are updated to point to worker_pool instead of gcwq too. This change is mechanical and doesn't introduce any functional difference other than rearranging of fields and an added level of indirection in some places. This is to prepare for multiple pools per gcwq. v2: Comment typo fixes as suggested by Namhyung.

Tejun Heo committed 14 years ago

Commit bd7bdd41 parent 974271c2 files · +118 −100Browse files

Showing the changes to include/trace (1 of 2 files). Show all

Unified · Split

include/trace/events/workqueue.h+1−1
@@ -54,7 +54,7 @@ TRACE_EVENT(workqueue_queue_work, · 53 unmodified lines
54 __entry->function = work->func;54 __entry->function = work->func;
55 __entry->workqueue = cwq->wq;55 __entry->workqueue = cwq->wq;
56 __entry->req_cpu = req_cpu;56 __entry->req_cpu = req_cpu;
57 __entry->cpu = cwq->gcwq->cpu;57 __entry->cpu = cwq->pool->gcwq->cpu;
58 ),58 ),
59 59
60 TP_printk("work struct=%p function=%pf workqueue=%p req_cpu=%u cpu=%u",60 TP_printk("work struct=%p function=%pf workqueue=%p req_cpu=%u cpu=%u",

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t