Changeset 22834


Ignore:
Timestamp:
2010-08-29T20:33:06+02:00 (6 years ago)
Author:
acoul
Message:

linux/generic: update 2.6.36 kernel patches

Location:
trunk/target/linux/generic/patches-2.6.36
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/patches-2.6.36/402-ledtrig_netdev.patch

    r22799 r22834  
    2020 obj-$(CONFIG_LEDS_TRIGGER_MORSE)       += ledtrig-morse.o 
    2121+obj-$(CONFIG_LEDS_TRIGGER_NETDEV)      += ledtrig-netdev.o 
     22 
     23--- a/drivers/leds/ledtrig-netdev.c 
     24+++ b/drivers/leds/ledtrig-netdev.c 
     25@@ -309,6 +309,7 @@ static void netdev_trig_timer(unsigned l 
     26        struct led_netdev_data *trigger_data = (struct led_netdev_data *)arg; 
     27        const struct net_device_stats *dev_stats; 
     28        unsigned new_activity; 
     29+       struct rtnl_link_stats64 temp; 
     30  
     31        write_lock(&trigger_data->lock); 
     32  
     33@@ -318,7 +319,7 @@ static void netdev_trig_timer(unsigned l 
     34                goto no_restart; 
     35        } 
     36  
     37-       dev_stats = dev_get_stats(trigger_data->net_dev); 
     38+       dev_stats = dev_get_stats(trigger_data->net_dev, &temp); 
     39        new_activity = 
     40                ((trigger_data->mode & MODE_TX) ? dev_stats->tx_packets : 0) + 
     41                ((trigger_data->mode & MODE_RX) ? dev_stats->rx_packets : 0); 
Note: See TracChangeset for help on using the changeset viewer.