Skip to content

Commit

Permalink
workqueue: Remove unused WORK_NO_COLOR
Browse files Browse the repository at this point in the history
WORK_NO_COLOR has no user now, just remove it.

Signed-off-by: Lai Jiangshan <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
  • Loading branch information
Lai Jiangshan authored and htejun committed Aug 17, 2021
1 parent d812796 commit bdb0a65
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions include/linux/workqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,14 @@ enum {
WORK_STRUCT_STATIC = 0,
#endif

/*
* The last color is no color used for works which don't
* participate in workqueue flushing.
*/
WORK_NR_COLORS = (1 << WORK_STRUCT_COLOR_BITS) - 1,
WORK_NO_COLOR = WORK_NR_COLORS,
WORK_NR_COLORS = (1 << WORK_STRUCT_COLOR_BITS),

/* not bound to any CPU, prefer the local CPU */
WORK_CPU_UNBOUND = NR_CPUS,

/*
* Reserve 8 bits off of pwq pointer w/ debugobjects turned off.
* This makes pwqs aligned to 256 bytes and allows 15 workqueue
* This makes pwqs aligned to 256 bytes and allows 16 workqueue
* flush colors.
*/
WORK_STRUCT_FLAG_BITS = WORK_STRUCT_COLOR_SHIFT +
Expand Down

0 comments on commit bdb0a65

Please sign in to comment.