Skip to contentSkip to conversation

workqueue: remove unused WORK_CPU_END

PATCH Applied Lai Jiangshan 2 participants 2 messages May 22, 2014 Workqueue

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 workqueue: remove unused WORK_CPU_END

WORK_CPU_END is totally unused since 4e8b22bd. 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.

---
 include/linux/workqueue.h |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
include/linux/workqueue.h +1 -2
index 7a8800c..860fcca 100644
@@ -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, the local CPU will be used if possible. */
 	WORK_CPU_UNBOUND	= NR_CPUS,
-	WORK_CPU_END		= NR_CPUS + 1,
 
 	/*
 	 * Reserve 7 bits off of pwq pointer w/ debugobjects turned off.
Signature · 1 line
1.7.4.4
maintainer Applied
#1 lore raw
Quoted 1 line · Lai Jiangshan

WORK_CPU_END is totally unused since 4e8b22bd. It should be removed.

Please use 12_CHAR_PREFIX_OF_SHA1 ("SUBJ") when referring to other commits.

Quoted 5 lines

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.

Applied to wq/for-3.16.

Thanks.

Signature · 1 line
tejun