hw/timer/arm_mptimer.c: Switch to transaction-based ptimer API
commit581b088035a16432aece13639985235e3689363e
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 8 Oct 2019 17:17:26 +0000 (8 18:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Oct 2019 17:09:02 +0000 (15 18:09 +0100)
tree12d2b347a4111e467525c3da05829a5949463ece
parent827c421492cb414f1d388442e2a4deb6e971fc8a
hw/timer/arm_mptimer.c: Switch to transaction-based ptimer API

Switch the arm_mptimer.c 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 timer.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20191008171740.9679-8-peter.maydell@linaro.org
hw/timer/arm_mptimer.c