hw/timer/grlib_gptimer.c: Switch to transaction-based ptimer API
commit663e475fbeecf3de9b4d1a84454bccfb67e87bc2
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Oct 2019 13:43:56 +0000 (21 14:43 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 25 Oct 2019 12:09:12 +0000 (25 13:09 +0100)
treeb138ab59f6ae1c7dfc8a1bfa03470ba39f343b16
parent2ee62f32a7a069de8d6917f8be16f6267d97cad8
hw/timer/grlib_gptimer.c: Switch to transaction-based ptimer API

Switch the grlib_gptimer 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>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20191021134357.14266-3-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/grlib_gptimer.c