UPSTREAM: netfilter: conntrack: use power efficient workqueue
authorVincent Guittot <vincent.guittot@linaro.org>
Thu, 2 Nov 2017 15:16:07 +0000 (16:16 +0100)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 3 Jan 2018 08:10:30 +0000 (13:40 +0530)
commit4406671f9ec830ed2d41bffe28b801daab0bff3b
tree1ff4caa059acdc77144cc40e189d244c3c43ba10
parent9e5dd8ed9b9ba4973f08338da91b6d0cf544a1c4
UPSTREAM: 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.

Change-Id: I12f862e7476b8e77c50e989ce16bd49b52063c1a
(cherry picked from commit 0984d427c1d3cb2aa882c9ad9e787ba973cf2915)
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
net/netfilter/nf_conntrack_core.c