]> git.baikalelectronics.ru Git - kernel.git/commit
net: mediatek: only wake the queue if it is stopped
authorJohn Crispin <john@phrozen.org>
Fri, 10 Jun 2016 11:28:07 +0000 (13:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jun 2016 06:29:30 +0000 (23:29 -0700)
commit365962fa008889efdd5ff28e91daafbf50d97c52
tree3e112eeef812641a282e1c85cc029a217f2227d1
parent58a7c92a4cf2988057a29a378e51c538a6d2be7d
net: mediatek: only wake the queue if it is stopped

The current code unconditionally wakes up the queue at the end of each
tx_poll action. Change the code to only wake up the queues if any of
them have actually been stopped before.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c