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>
This commit is contained in:
Eric Dumazet
2019-03-22 08:56:38 -07:00
committed by David S. Miller
parent 7c1508e5f6
commit dc05360fee
6 changed files with 15 additions and 15 deletions

View File

@@ -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);