]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: reduce unnecessary wakeups from eee sw timer
authorJisheng Zhang <jszhang@kernel.org>
Sun, 23 Jan 2022 15:54:58 +0000 (23:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jan 2022 10:55:54 +0000 (10:55 +0000)
commitc74ead223deb88bdf18af8c772d7ca5a9b6c3c2b
tree10d17295286c84db9fd1ca554d1e88297021d170
parente52984be9a522fb55c8f3e3df860d464d6658585
net: stmmac: reduce unnecessary wakeups from eee sw timer

Currently, on EEE capable platforms, if EEE SW timer is used, the SW
timer cause 1 wakeup/s even if the TX has successfully entered EEE.
Remove this unnecessary wakeup by only calling mod_timer() if we
haven't successfully entered EEE.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c