]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: make queueing functions return bool
authorTejun Heo <tj@kernel.org>
Fri, 3 Aug 2012 17:30:44 +0000 (10:30 -0700)
committerTejun Heo <tj@kernel.org>
Fri, 3 Aug 2012 17:30:44 +0000 (10:30 -0700)
commit77ef0598e530583da24185f24c91240b8b6b3002
tree1b1e401e51021c90407fae58e000c183a0e6c0e2
parentaa637477f20d2a3c253c43533d1a0e094d94a143
workqueue: make queueing functions return bool

All queueing functions return 1 on success, 0 if the work item was
already pending.  Update them to return bool instead.  This signifies
better that they don't return 0 / -errno.

This is cleanup and doesn't cause any functional difference.

While at it, fix comment opening for schedule_work_on().

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