]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 7 Mar 2022 10:41:58 +0000 (11:41 +0100)
commit3b4399266251fdca65a90647676f5faac867df40
tree6d9793e6174dfadbcea4a1546e6e2a0797c25a8a
parent193c996229a55d102d41600e517cc80fc0380b44
net: stmmac: reduce unnecessary wakeups from eee sw timer

BugLink: https://bugs.launchpad.net/bugs/1963889
[ Upstream commit c74ead223deb88bdf18af8c772d7ca5a9b6c3c2b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c