Move npcm7xx_timer_reached_zero call out of npcm7xx_timer_pause
commit2ac88848cb03605e2fae6a035650eea461218af2
authorHavard Skinnemoen <hskinnemoen@google.com>
Fri, 23 Oct 2020 21:06:33 +0000 (23 14:06 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 27 Oct 2020 10:44:07 +0000 (27 10:44 +0000)
treec17813e66e639702e638c144d825d3bb2ee1b19f
parent7854104897444027759d805c133d9ea16c6a6c47
Move npcm7xx_timer_reached_zero call out of npcm7xx_timer_pause

This allows us to reuse npcm7xx_timer_pause for the watchdog timer.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Havard Skinnemoen <hskinnemoen@google.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/timer/npcm7xx_timer.c