[kvm-unit-tests PATCH 3/4] arm: timer: Test CVAL before interrupt pending state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux