hw/timer/arm_timer.c: Switch to transaction-based ptimer API
commit5a65f7b5f4907ca70cb6eae1265e59ccbdfa0937
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 8 Oct 2019 17:17:23 +0000 (8 18:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Oct 2019 17:09:02 +0000 (15 18:09 +0100)
tree4ceae649be62b2e392acee4f7becae85637256f3
parent91b37aea0e3f344aefec4d72faf12cbcac79d64e
hw/timer/arm_timer.c: Switch to transaction-based ptimer API

Switch the arm_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 arms of
arm_timer_write() that modify the ptimer state, and using the
new ptimer_init() function to create the timer.

Fixes: https://bugs.launchpad.net/qemu/+bug/1777777
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20191008171740.9679-5-peter.maydell@linaro.org
hw/timer/arm_timer.c