From: Christophe JAILLET Date: Sun, 21 Nov 2021 18:01:03 +0000 (+0100) Subject: net-sysfs: Slightly optimize 'xps_queue_show()' X-Git-Tag: v6.1-rc5~2306^2~376 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08a7abf4aff1a42290fd20ff7a5fa8a3ff5f90e7;p=platform%2Fkernel%2Flinux-starfive.git 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 --- diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index addbef5..4edd58d 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; } }