summaryrefslogtreecommitdiffstats
path: root/net/core/net-sysfs.c
diff options
context:
space:
mode:
authorEric Dumazet2019-03-22 16:56:38 +0100
committerDavid S. Miller2019-03-24 02:57:38 +0100
commitdc05360fee660a9dbe59824b3f7896534210432b (patch)
treefa8642f7e29d461bbdd900e86a5d85e131421879 /net/core/net-sysfs.c
parentMerge branch 'net-dev-BYPASS-for-lockless-qdisc' (diff)
downloadkernel-qcow2-linux-dc05360fee660a9dbe59824b3f7896534210432b.tar.gz
kernel-qcow2-linux-dc05360fee660a9dbe59824b3f7896534210432b.tar.xz
kernel-qcow2-linux-dc05360fee660a9dbe59824b3f7896534210432b.zip
net: convert rps_needed and rfs_needed to new static branch api
We prefer static_branch_unlikely() over static_key_false() these days. Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Soheil Hassas Yeganeh <soheil@google.com> Acked-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/net-sysfs.c')
-rw-r--r--net/core/net-sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index 4ff661f6f989..851cabb90bce 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c
@@ -754,9 +754,9 @@ static ssize_t store_rps_map(struct netdev_rx_queue *queue,
rcu_assign_pointer(queue->rps_map, map);
if (map)
- static_key_slow_inc(&rps_needed);
+ static_branch_inc(&rps_needed);
if (old_map)
- static_key_slow_dec(&rps_needed);
+ static_branch_dec(&rps_needed);
mutex_unlock(&rps_map_mutex);