hw/timer/slavio_timer.c: Switch to transaction-based ptimer API
commit2ee62f32a7a069de8d6917f8be16f6267d97cad8
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Oct 2019 13:43:57 +0000 (21 14:43 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 25 Oct 2019 12:08:37 +0000 (25 13:08 +0100)
tree24d9d7dfdcfb805a0d8f19c70701335ecf47377e
parent5e3478925dd0640b80d766ed330b7d281d761ceb
hw/timer/slavio_timer.c: Switch to transaction-based ptimer API

Switch the slavio_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: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20191021134357.14266-4-peter.maydell@linaro.org
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/timer/slavio_timer.c