summaryrefslogtreecommitdiffstats
path: root/hw/sparc/Kconfig
diff options
context:
space:
mode:
authorPeter Maydell2020-10-15 17:18:28 +0200
committerPeter Maydell2020-10-27 12:15:31 +0100
commit68d59c6d8d85ae176d3cb2cd20a48d6a090ba288 (patch)
treecb227c229c530d515dc61e06db58d84131b8c690 /hw/sparc/Kconfig
parenthw/arm/sbsa-ref: add SBSA watchdog device (diff)
downloadqemu-68d59c6d8d85ae176d3cb2cd20a48d6a090ba288.tar.gz
qemu-68d59c6d8d85ae176d3cb2cd20a48d6a090ba288.tar.xz
qemu-68d59c6d8d85ae176d3cb2cd20a48d6a090ba288.zip
hw/core/ptimer: Support ptimer being disabled by timer callback
In ptimer_reload(), we call the callback function provided by the timer device that is using the ptimer. This callback might disable the ptimer. The code mostly handles this correctly, except that we'll still print the warning about "Timer with delta zero, disabling" if the now-disabled timer happened to be set such that it would fire again immediately if it were enabled (eg because the limit/reload value is zero). Suppress the spurious warning message and the unnecessary repeat-deletion of the underlying timer in this case. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20201015151829.14656-2-peter.maydell@linaro.org
Diffstat (limited to 'hw/sparc/Kconfig')
0 files changed, 0 insertions, 0 deletions