hw/timer/cmsdk-apb-timer.c: Switch to transaction-based ptimer API
commit19c12fe93ab9c65b56c7dfd467799a63c28d4bbd
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 8 Oct 2019 17:17:28 +0000 (8 18:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Oct 2019 17:09:02 +0000 (15 18:09 +0100)
tree4db53c9e6c9a5113f830ac8a064cd09f4d276c0d
parentda38e0680f8e5118131fd224d52e97d7db38a48c
hw/timer/cmsdk-apb-timer.c: Switch to transaction-based ptimer API

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