Commit 08a7abf4 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by David S. Miller
Browse files

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent db473c07
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
			}
		}