commit | ffdab0c0c40bab6de78b1952bb07aed221994b73 | [log] [tgz] |
---|---|---|
author | Benoit Goby <benoit@android.com> | Wed Nov 17 14:27:51 2010 -0800 |
committer | Colin Cross <ccross@android.com> | Tue Jun 14 09:09:11 2011 -0700 |
tree | ec6b6aded00bd902b624ce1ca8c7cda5f565aea7 | |
parent | 16c08c28717ba564ff2306f13803788a46d9159f [diff] |
usb: gadget: rndis: don't use dev_get_stats Since 2.6.36, spin_lock_bh has been added to dev_txq_stats_fold. So dev_get_stats cannot be called from atomic context. Replaced it by netdev_stats_to_stats64 to copy the stats directly. This will work if the device driver does not need txq tx stats folding. http://lkml.org/lkml/2010/9/20/250 Change-Id: I715b00892beda56cc369139d6e2bdc9efb6bfe79 Signed-off-by: Benoit Goby <benoit@android.com>