]> www.infradead.org Git - users/dwmw2/qemu.git/commit
misc: pxa2xx_timer: replace qemu_system_reset_request() call with watchdog_perform_ac...
authorAbhiram Tilak <atp.exp@gmail.com>
Mon, 26 Feb 2024 14:07:23 +0000 (14:07 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 27 Feb 2024 13:01:41 +0000 (13:01 +0000)
commitefabbc07e96b502acb4927743964dde132d75ded
tree2aaf3192414c8053b51355a55884b38dd91f02b1
parent9d80aa04832a5ec342f31a6bfea50b9245110139
misc: pxa2xx_timer: replace qemu_system_reset_request() call with watchdog_perform_action()

A few watchdog devices use qemu_system_reset_request(). This is not ideal since
behaviour of watchdog-expiry can't be changed by QMP using `watchdog_action`.
As stated in BiteSizedTasks wiki page, instead of using qemu_system_reset_request()
to reset when a watchdog timer expires, let watchdog_perform_action() decide
what to do.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2124
Signed-off-by: Abhiram Tilak <atp.exp@gmail.com>
Message-id: 20240216192612.30838-5-atp.exp@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/timer/pxa2xx_timer.c