diff options
author | Pawel Dembicki <paweldembicki@gmail.com> | 2024-04-17 23:50:44 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-04-23 00:20:13 +0300 |
commit | eb7e33d01db3aec128590391b2397384bab406b6 (patch) | |
tree | 00359005c8fd303c128ef9d7b9f9eed7f79fa258 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | c51db4ac10d57c366f9a92121e3889bfc6c324cd (diff) | |
download | linux-eb7e33d01db3aec128590391b2397384bab406b6.tar.xz |
net: dsa: vsc73xx: use read_poll_timeout instead delay loop
Switch the delay loop during the Arbiter empty check from
vsc73xx_adjust_link() to use read_poll_timeout(). Functionally,
one msleep() call is eliminated at the end of the loop in the timeout
case.
As Russell King suggested:
"This [change] avoids the issue that on the last iteration, the code reads
the register, tests it, finds the condition that's being waiting for is
false, _then_ waits and end up printing the error message - that last
wait is rather useless, and as the arbiter state isn't checked after
waiting, it could be that we had success during the last wait."
Suggested-by: Russell King <linux@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://lore.kernel.org/r/20240417205048.3542839-2-paweldembicki@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions