hw/timer/mss-timerc: Switch to transaction-based ptimer API
commit00ee4b0f485a96d91beb613ccd43044e354d97df
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 8 Oct 2019 17:17:38 +0000 (8 18:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Oct 2019 17:09:03 +0000 (15 18:09 +0100)
treeeb7c80956bf09789b4102fdbcfead28c02a6731a
parent1b914994ea5e995f36fe751f7ed1d8858a87b032
hw/timer/mss-timerc: Switch to transaction-based ptimer API

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

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