hw/timer/lm32_timer: Switch to transaction-based ptimer API
commitb360a65cf9936bb3ef0e8e94efa553e03081a7b4
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 22 Oct 2019 15:50:36 +0000 (22 16:50 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 22 Oct 2019 16:44:00 +0000 (22 17:44 +0100)
tree632f2cc721be7191e9fd5f630c1b9e00d11efd5e
parent28015830d944169edd2db0cfd64c84e937ec4f25
hw/timer/lm32_timer: Switch to transaction-based ptimer API

Switch the lm32_timer code away from bottom-half based ptimers to the
new transaction-based ptimer API.  This just requires adding
begin/commit calls around the various places that modify the ptimer
state, and using the new ptimer_init() function to create the ytimer.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20191017132905.5604-4-peter.maydell@linaro.org
hw/timer/lm32_timer.c