OSDN Git Service

hw/timer/imx_gpt.c: Switch to transaction-based ptimer API
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 8 Oct 2019 17:17:37 +0000 (18:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Oct 2019 17:09:03 +0000 (18:09 +0100)
commit1b914994ea5e995f36fe751f7ed1d8858a87b032
tree51e230d2013868b67a30a9e82531b2f5a0d269d1
parentcc2722ec83ad944505fe9371fc4a94efdf4fe90f
hw/timer/imx_gpt.c: Switch to transaction-based ptimer API

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