block: queue work on power efficient wq
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 24 Apr 2013 11:42:56 +0000 (17:12 +0530)
committerMark Brown <broonie@linaro.org>
Thu, 18 Jul 2013 13:30:51 +0000 (14:30 +0100)
commit4d5c9ea3313e410686855496f556d90e589ed2e2
treefdc3d144e45407526b1a5e244716ab972e323c30
parentbbe9f36ad93d3404e4c99509f6d13aed67fce02e
block: queue work on power efficient wq

Block layer uses workqueues for multiple purposes. There is no real dependency
of scheduling these on the cpu which scheduled them.

On a idle system, it is observed that and idle cpu wakes up many times just to
service this work. It would be better if we can schedule it on a cpu which the
scheduler believes to be the most appropriate one.

This patch replaces normal workqueues with power efficient versions.

Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
(cherry picked from commit 695588f9454bdbc7c1a2fbb8a6bfdcfba6183348)
Signed-off-by: Mark Brown <broonie@linaro.org>
block/blk-core.c
block/blk-ioc.c
block/genhd.c