workqueue: implement several utility APIs
authorTejun Heo <tj@kernel.org>
Tue, 29 Jun 2010 08:07:14 +0000 (10:07 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 29 Jun 2010 08:07:14 +0000 (10:07 +0200)
Implement the following utility APIs.

 workqueue_set_max_active() : adjust max_active of a wq
 workqueue_congested() : test whether a wq is contested
 work_cpu() : determine the last / current cpu of a work
 work_busy() : query whether a work is busy

* Anton Blanchard fixed missing ret initialization in work_busy().

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

Simple merge
Simple merge