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)
commitad3cba989e8b1bbefe078eece29f0e8d8aaea1d6
tree3e112eeef812641a282e1c85cc029a217f2227d1
parent12c97c13ea7174db5b5dc4a1ef91d4e9245bb569
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