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

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