diff options
| author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2014-05-22 16:43:44 +0800 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2017-12-05 18:05:55 +0100 |
| commit | c710e15ae6ee04b7af52a24a1fd1165ffecf7e4a (patch) | |
| tree | 97a1c7c2eab1ef899f77cc21eb05c6c6e250316d | |
| parent | 98d5e3d911a0efd37477d03179aeaf181d20ce8b (diff) | |
workqueue: remove unused WORK_CPU_END
WORK_CPU_END is totally unused since 4e8b22bd1a37 ("workqueue: fix
pool ID allocation leakage and remove BUILD_BUG_ON() in
init_workqueues"). It should be removed.
After it is removed, the comment "special cpu IDs" is not precise due to
there is only one special CPU ID (WORK_CPU_UNBOUND) left, so we also
change this comment to the description for WORK_CPU_UNBOUND.
tj: Minor description and comment tweaks.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
| -rw-r--r-- | include/linux/workqueue.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index 9fd4dc2a7..412f40a14 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h @@ -56,9 +56,8 @@ enum { WORK_NR_COLORS = (1 << WORK_STRUCT_COLOR_BITS) - 1, WORK_NO_COLOR = WORK_NR_COLORS, - /* special cpu IDs */ + /* not bound to any CPU, prefer the local CPU */ WORK_CPU_UNBOUND = NR_CPUS, - WORK_CPU_END = NR_CPUS + 1, /* * Reserve 7 bits off of pwq pointer w/ debugobjects turned off. |
