The timer pending test uses CVAL to trigger changes in the timer interrupt state. Move the CVAL test before the pending test to make sure that writes to the CVAL register have an effect on the timer internal state before using the register for other tests. Signed-off-by: Alexandru Elisei <alexandru.elisei@xxxxxxx> --- arm/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm/timer.c b/arm/timer.c index 617845c6525d..7b2d82896c74 100644 --- a/arm/timer.c +++ b/arm/timer.c @@ -298,8 +298,8 @@ static void test_timer_tval(struct timer_info *info) static void test_timer(struct timer_info *info) { - test_timer_pending(info); test_timer_cval(info); + test_timer_pending(info); test_timer_tval(info); } -- 2.34.1