Files
tegra-linux-noble/include/linux
Tejun Heo 7c3eed5cd6 workqueue: record pool ID instead of CPU in work->data when off-queue
Currently, when a work item is off-queue, work->data records the CPU
it was last on, which is used to locate the last executing instance
for non-reentrance, flushing, etc.

We're in the process of removing global_cwq and making worker_pool the
top level abstraction.  This patch makes work->data point to the pool
it was last associated with instead of CPU.

After the previous WORK_OFFQ_POOL_CPU and worker_poo->id additions,
the conversion is fairly straight-forward.  WORK_OFFQ constants and
functions are modified to record and read back pool ID instead.
worker_pool_by_id() is added to allow looking up pool from ID.
get_work_pool() replaces get_work_gcwq(), which is reimplemented using
get_work_pool().  get_work_pool_id() replaces work_cpu().

This patch shouldn't introduce any observable behavior changes.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Lai Jiangshan <laijs@cn.fujitsu.com>
2013-01-24 11:01:33 -08:00
..
2012-11-26 10:19:17 -08:00
2012-12-07 17:02:47 +00:00
2012-11-30 12:37:36 +01:00
2012-12-02 00:05:12 +00:00
2012-11-28 11:54:40 +01:00
2012-11-22 13:43:27 +09:00
2012-11-28 21:49:02 -05:00
2012-11-28 21:49:02 -05:00
2012-12-17 20:58:12 -08:00
2012-11-21 10:07:48 +01:00
2012-11-23 12:23:40 +01:00
2012-11-21 15:09:26 -08:00
2012-12-17 17:15:22 -08:00
2012-11-20 16:15:02 +10:00
2012-12-12 17:38:33 -08:00
2012-12-11 17:22:27 -08:00
2012-12-17 17:15:22 -08:00
2012-11-16 14:33:04 -08:00