]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: define masks for work flags and conditionalize STATIC flags
authorTejun Heo <tj@kernel.org>
Tue, 29 Jun 2010 08:07:10 +0000 (10:07 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 29 Jun 2010 08:07:10 +0000 (10:07 +0200)
commit3762ee3dea61fba5c59dd299be0ead863abe40bb
tree125b00589e5abe4dc941a1dba467cd50563ad195
parent33fc22b275fa18620e40191ddfef52622bc4c926
workqueue: define masks for work flags and conditionalize STATIC flags

Work flags are about to see more traditional mask handling.  Define
WORK_STRUCT_*_BIT as the bit position constant and redefine
WORK_STRUCT_* as bit masks.  Also, make WORK_STRUCT_STATIC_* flags
conditional

While at it, re-define these constants as enums and use
WORK_STRUCT_STATIC instead of hard-coding 2 in
WORK_DATA_STATIC_INIT().

Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/workqueue.h
kernel/workqueue.c