summaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-07-12 23:46:37 +0200
committerTejun Heo <tj@kernel.org>2012-07-12 23:46:37 +0200
commitbd7bdd43dcb81bb08240b9401b36a104f77dc135 (patch)
tree4d12a15e7e72f2d64fb6e58a145e56b4da1a341a /include/trace
parentworkqueue: don't use WQ_HIGHPRI for unbound workqueues (diff)
downloadlinux-bd7bdd43dcb81bb08240b9401b36a104f77dc135.tar.xz
linux-bd7bdd43dcb81bb08240b9401b36a104f77dc135.zip
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. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/workqueue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/events/workqueue.h b/include/trace/events/workqueue.h
index 4018f5058f27..f28d1b65f178 100644
--- a/include/trace/events/workqueue.h
+++ b/include/trace/events/workqueue.h
@@ -54,7 +54,7 @@ TRACE_EVENT(workqueue_queue_work,
__entry->function = work->func;
__entry->workqueue = cwq->wq;
__entry->req_cpu = req_cpu;
- __entry->cpu = cwq->gcwq->cpu;
+ __entry->cpu = cwq->pool->gcwq->cpu;
),
TP_printk("work struct=%p function=%pf workqueue=%p req_cpu=%u cpu=%u",