netdev: Convert all drivers away from netif_schedule().
authorDavid S. Miller <davem@davemloft.net>
Tue, 15 Jul 2008 10:47:41 +0000 (03:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jul 2008 02:21:15 +0000 (19:21 -0700)
They logically all want to trigger a schedule for all device
TX queues.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/au1000_eth.c
drivers/net/bfin_mac.c
drivers/net/fec_mpc52xx.c
drivers/net/fs_enet/fs_enet-main.c
drivers/net/gianfar.c
drivers/net/macb.c
drivers/net/sh_eth.c
drivers/net/tc35815.c
drivers/net/ucc_geth.c

index 7023d77bf380ffb31f42042e3b11a6cbedb5d3f9..3ab61e40e86aa833e32d1acc82b8ae9985ef433d 100644 (file)
@@ -912,7 +912,7 @@ au1000_adjust_link(struct net_device *dev)
                // link state changed
 
                if (phydev->link) // link went up
-                       netif_schedule(dev);
+                       netif_tx_schedule_all(dev);
                else { // link went down
                        aup->old_speed = 0;
                        aup->old_duplex = -1;
index 41443435ab1c374f5b5788905dc199efa5b07373..a6a3da89f590138eea9e563674bde2a5cf786de1 100644 (file)
@@ -357,7 +357,7 @@ static void bfin_mac_adjust_link(struct net_device *dev)
                if (!lp->old_link) {
                        new_state = 1;
                        lp->old_link = 1;
-                       netif_schedule(dev);
+                       netif_tx_schedule_all(dev);
                }
        } else if (lp->old_link) {
                new_state = 1;
index 329edd9c08fc065596dfcdb9808454c2194e9d68..ae9ecb7df22be16f19038c8d0d2c63c7618e7a6e 100644 (file)
@@ -197,7 +197,7 @@ static void mpc52xx_fec_adjust_link(struct net_device *dev)
                if (priv->link == PHY_DOWN) {
                        new_state = 1;
                        priv->link = phydev->link;
-                       netif_schedule(dev);
+                       netif_tx_schedule_all(dev);
                        netif_carrier_on(dev);
                        netif_start_queue(dev);
                }
index fb7c47790bd6269ca4149dbc168bbcaf606f3f88..bdb81f5750adefee1b08069fb325a26ce96baf44 100644 (file)
@@ -738,7 +738,7 @@ static void generic_adjust_link(struct  net_device *dev)
                if (!fep->oldlink) {
                        new_state = 1;
                        fep->oldlink = 1;
-                       netif_schedule(dev);
+                       netif_tx_schedule_all(dev);
                        netif_carrier_on(dev);
                        netif_start_queue(dev);
                }
index fa78d68701246c9b3392f98c5e8c3bd9312db942..45a63172852f1947719a9564df2d7a8e6b4fe021 100644 (file)
@@ -1234,7 +1234,7 @@ static void gfar_timeout(struct net_device *dev)
                startup_gfar(dev);
        }
 
-       netif_schedule(dev);
+       netif_tx_schedule_all(dev);
 }
 
 /* Interrupt Handler for Transmit complete */
@@ -1725,7 +1725,7 @@ static void adjust_link(struct net_device *dev)
                if (!priv->oldlink) {
                        new_state = 1;
                        priv->oldlink = 1;
-                       netif_schedule(dev);
+                       netif_tx_schedule_all(dev);
                }
        } else if (priv->oldlink) {
                new_state = 1;
index e34630252cefcfa5216e08c3658d1f4ad9447c4c..50688a52658eb359f8c12ebf56a8d64a9c3c46e6 100644 (file)
@@ -165,7 +165,7 @@ static void macb_handle_link_change(struct net_device *dev)
 
        if (phydev->link != bp->link) {
                if (phydev->link)
-                       netif_schedule(dev);
+                       netif_tx_schedule_all(dev);
                else {
                        bp->speed = 0;
                        bp->duplex = -1;
index 37f3116ea6bdc04f98c2528ccb6ca649807a5215..a4bc812aa99910ecce1d188058df916d9188da27 100644 (file)
@@ -642,7 +642,7 @@ static void sh_eth_adjust_link(struct net_device *ndev)
                                        | ECMR_DM, ioaddr + ECMR);
                        new_state = 1;
                        mdp->link = phydev->link;
-                       netif_schedule(ndev);
+                       netif_tx_schedule_all(ndev);
                        netif_carrier_on(ndev);
                        netif_start_queue(ndev);
                }
index b07b8cbadeaf8eb4a34dbbfe848ad5499f2a628b..41d3ac45685f768857392addf61d291737a34f5b 100644 (file)
@@ -672,7 +672,7 @@ static void tc_handle_link_change(struct net_device *dev)
                        if (dev->flags & IFF_PROMISC)
                                tc35815_set_multicast_list(dev);
 #endif
-                       netif_schedule(dev);
+                       netif_tx_schedule_all(dev);
                } else {
                        lp->speed = 0;
                        lp->duplex = -1;
index 07933f71b86d0aa81c5a3533a0b10b9a9655e743..c1b55bc7eab759e7e093e45c7a1ce49e4e5e381c 100644 (file)
@@ -1588,7 +1588,7 @@ static void adjust_link(struct net_device *dev)
                if (!ugeth->oldlink) {
                        new_state = 1;
                        ugeth->oldlink = 1;
-                       netif_schedule(dev);
+                       netif_tx_schedule_all(dev);
                }
        } else if (ugeth->oldlink) {
                        new_state = 1;
@@ -3372,7 +3372,7 @@ static void ucc_geth_timeout(struct net_device *dev)
                ucc_geth_startup(ugeth);
        }
 
-       netif_schedule(dev);
+       netif_tx_schedule_all(dev);
 }
 
 /* This is called by the kernel when a frame is ready for transmission. */