hw/timer/digic-timer.c: Switch to transaction-based ptimer API
commit30e22c8733e8b2bed7dc77c4f9ebc7a4a4114632
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 8 Oct 2019 17:17:29 +0000 (8 18:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Oct 2019 17:09:02 +0000 (15 18:09 +0100)
tree59cf22f925f0dfc4f9b31fb9a089f29302e9bc00
parent19c12fe93ab9c65b56c7dfd467799a63c28d4bbd
hw/timer/digic-timer.c: Switch to transaction-based ptimer API

Switch the digic-timer.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-11-peter.maydell@linaro.org
hw/timer/digic-timer.c