]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[NET]: minor net_rx_action optimization
authorStephen Hemminger <shemminger@osdl.org>
Tue, 21 Mar 2006 06:26:39 +0000 (22:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 06:26:39 +0000 (22:26 -0800)
The functions list_del followed by list_add_tail is equivalent to the
existing inline list_move_tail. list_move_tail avoids unnecessary
_LIST_POISON.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c

index be1d896cc5b94b96bbd10cd464564f12fcdc790e..ee044097f7f2411eb5be43ab545ed3c1ea3fc3e0 100644 (file)
@@ -1759,8 +1759,7 @@ static void net_rx_action(struct softirq_action *h)
                if (dev->quota <= 0 || dev->poll(dev, &budget)) {
                        netpoll_poll_unlock(have);
                        local_irq_disable();
-                       list_del(&dev->poll_list);
-                       list_add_tail(&dev->poll_list, &queue->poll_list);
+                       list_move_tail(&dev->poll_list, &queue->poll_list);
                        if (dev->quota < 0)
                                dev->quota += dev->weight;
                        else