]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: conntrack: use power efficient workqueue
authorVincent Guittot <vincent.guittot@linaro.org>
Thu, 2 Nov 2017 15:16:07 +0000 (16:16 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 6 Nov 2017 23:59:10 +0000 (00:59 +0100)
commit7cddc618ecec5edcef585fef522852aa5550fb7f
tree5332efb5a104e672b1d356d3fa7f8a47f57c49e4
parent30cfbab872599fb38333a1d5af4bba72001f8117
netfilter: conntrack: use power efficient workqueue

conntrack uses the bounded system_long_wq workqueue for its works that
don't have to run on the cpu they have been queued.
Using bounded workqueue prevents the scheduler to make smart decision about
the best place to schedule the work.

This patch replaces system_long_wq with system_power_efficient_wq. the work
stays bounded to a cpu by default unless the CONFIG_WQ_POWER_EFFICIENT is
enable. In the latter case, the work can be scheduled on the best cpu from
a power or a performance point of view.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_core.c