net/neighbour: queue work on power efficient wq
authorviresh kumar <viresh.kumar@linaro.org>
Wed, 22 Jan 2014 06:53:33 +0000 (12:23 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jan 2014 05:57:05 +0000 (21:57 -0800)
commitf618002b0b598036ebb8feceb44ea8e05f4cd37b
tree0273785b7340ba3490ae27afae6f8dc320fa2070
parent906e073f3e842877b59d669b25aa76f65ba775b3
net/neighbour: queue work on power efficient wq

Workqueue used in neighbour layer have no real dependency of scheduling these on
the cpu which scheduled them.

On a idle system, it is observed that an 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. This
doesn't change existing behavior of code unless CONFIG_WQ_POWER_EFFICIENT is
enabled.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c