Revert "util/timer: avoid deadlock when shutting down"
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 7 Feb 2025 15:31:02 +0000 (15:31 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 10 Feb 2025 13:47:58 +0000 (13:47 +0000)
commita08eac97615e20facfadc0c27ef116c12b2163b2
tree5986516b6a6a7359bc91c0ed8e3c7da77d8ac5a1
parent14fa0e6b2065bf693e4bdfc3fa0a84e1b8b5ffe1
Revert "util/timer: avoid deadlock when shutting down"

This reverts commit bc02be4508d8753d1f6071b77d10f4661587df6f.

Now we catch attempts to clock_step to the next timer when none are
enabled we can revert the previous attempt to prevent deadlock. As
long as a new target time is given we will move time forward even if
no timers will fire. This is desirable for tests which are checking
that nothing changes when things are disabled.

Previously most tests got away with it because --enable-slirp always
has a timer running while the test is active.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20250207153112.3939799-8-alex.bennee@linaro.org>
util/qemu-timer.c