Files
kernel_xiaomi_sm8250/include/linux
Lai Jiangshan 45d9550a0e workqueue: allow more off-queue flag space
When a work item is off-queue, its work->data contains WORK_STRUCT_*
and WORK_OFFQ_* flags.  As WORK_OFFQ_* flags are used only while a
work item is off-queue, it can occupy bits of work->data which aren't
used while off-queue.  WORK_OFFQ_* currently only use bits used by
on-queue CWQ pointer.  As color bits aren't used while off-queue,
there's no reason to not use them.

Lower WORK_OFFQ_FLAG_BASE from WORK_STRUCT_FLAG_BITS to
WORK_STRUCT_COLOR_SHIFT thus giving 4 more bits to off-queue flag
space which is also used to record worker_pool ID while off-queue.

This doesn't introduce any visible behavior difference.

tj: Rewrote the description.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
2013-03-04 09:44:57 -08:00
..
2013-03-01 13:39:00 -08:00
2013-02-22 09:22:19 +02:00
2013-02-25 09:24:55 -05:00
2013-02-21 14:16:27 -03:00
2013-02-26 02:46:08 -05:00
2013-02-22 23:31:31 -05:00
2013-02-27 19:10:21 -08:00
2013-02-19 08:43:34 +01:00
2013-02-14 09:21:15 -05:00