OSDN Git Service

hw/arm/musicpal.c: Switch to transaction-based ptimer API
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 8 Oct 2019 17:17:24 +0000 (18:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Oct 2019 17:09:02 +0000 (18:09 +0100)
commitd8052a2e2d39660ba657af83cf079b1fe812c163
tree398623858ded08914782efcd05e0a313fecce1e6
parent5a65f7b5f4907ca70cb6eae1265e59ccbdfa0937
hw/arm/musicpal.c: Switch to transaction-based ptimer API

Switch the musicpal 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-6-peter.maydell@linaro.org
hw/arm/musicpal.c