From 08a7abf4aff1a42290fd20ff7a5fa8a3ff5f90e7 Mon Sep 17 00:00:00 2001 From: Christophe JAILLET Date: Sun, 21 Nov 2021 19:01:03 +0100 Subject: [PATCH] net-sysfs: Slightly optimize 'xps_queue_show()' The 'mask' bitmap is local to this function. So the non-atomic '__set_bit()' can be used to save a few cycles. Signed-off-by: Christophe JAILLET Signed-off-by: David S. Miller --- net/core/net-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index addbef5419fbb..4edd58d34f166 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -1448,7 +1448,7 @@ static ssize_t xps_queue_show(struct net_device *dev, unsigned int index, for (i = map->len; i--;) { if (map->queues[i] == index) { - set_bit(j, mask); + __set_bit(j, mask); break; } } -- 2.50.1