diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-11-10 09:14:46 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-11-11 17:05:10 +0100 |
commit | eb400f06e69e08de47b0a4abd772018ba0ddd008 (patch) | |
tree | 6797fb2401096f26286bff723e13be1480568c60 | |
parent | 69506951673b8d197032d4475b43b7b7e312c31d (diff) |
testsuites/validation/tc-timecounter-get.c
-rw-r--r-- | testsuites/validation/tc-timecounter-get.c | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/testsuites/validation/tc-timecounter-get.c b/testsuites/validation/tc-timecounter-get.c index 7ab746ab86..a7f65e95ae 100644 --- a/testsuites/validation/tc-timecounter-get.c +++ b/testsuites/validation/tc-timecounter-get.c @@ -179,6 +179,8 @@ static void ActionRealtime( void *arg ) tc->state = STATE_GET_TIMECOUNT_BEFORE; rtems_clock_get_realtime( &ts ); tc->state = STATE_GET_TIMECOUNT_AFTER; + + T_interrupt_test_busy_wait_for_interrupt(); } static void ActionRealtimeBintime( void *arg ) @@ -190,6 +192,8 @@ static void ActionRealtimeBintime( void *arg ) tc->state = STATE_GET_TIMECOUNT_BEFORE; rtems_clock_get_realtime_bintime( &bt ); tc->state = STATE_GET_TIMECOUNT_AFTER; + + T_interrupt_test_busy_wait_for_interrupt(); } static void ActionRealtimeTimeval( void *arg ) @@ -201,6 +205,8 @@ static void ActionRealtimeTimeval( void *arg ) tc->state = STATE_GET_TIMECOUNT_BEFORE; rtems_clock_get_realtime_timeval( &tv ); tc->state = STATE_GET_TIMECOUNT_AFTER; + + T_interrupt_test_busy_wait_for_interrupt(); } static void ActionMonotonic( void *arg ) @@ -212,6 +218,8 @@ static void ActionMonotonic( void *arg ) tc->state = STATE_GET_TIMECOUNT_BEFORE; rtems_clock_get_monotonic( &ts ); tc->state = STATE_GET_TIMECOUNT_AFTER; + + T_interrupt_test_busy_wait_for_interrupt(); } static void ActionMonotonicBintime( void *arg ) @@ -223,6 +231,8 @@ static void ActionMonotonicBintime( void *arg ) tc->state = STATE_GET_TIMECOUNT_BEFORE; rtems_clock_get_monotonic_bintime( &bt ); tc->state = STATE_GET_TIMECOUNT_AFTER; + + T_interrupt_test_busy_wait_for_interrupt(); } static void ActionMonotonicSbintime( void *arg ) @@ -233,6 +243,8 @@ static void ActionMonotonicSbintime( void *arg ) tc->state = STATE_GET_TIMECOUNT_BEFORE; (void) rtems_clock_get_monotonic_sbintime(); tc->state = STATE_GET_TIMECOUNT_AFTER; + + T_interrupt_test_busy_wait_for_interrupt(); } static void ActionMonotonicTimeval( void *arg ) @@ -244,6 +256,8 @@ static void ActionMonotonicTimeval( void *arg ) tc->state = STATE_GET_TIMECOUNT_BEFORE; rtems_clock_get_monotonic_timeval( &tv ); tc->state = STATE_GET_TIMECOUNT_AFTER; + + T_interrupt_test_busy_wait_for_interrupt(); } static void ActionCoarseRealtime( void *arg ) @@ -255,6 +269,8 @@ static void ActionCoarseRealtime( void *arg ) tc->state = STATE_GET_TIMECOUNT_BEFORE; rtems_clock_get_realtime_coarse( &ts ); tc->state = STATE_GET_TIMECOUNT_AFTER; + + T_interrupt_test_busy_wait_for_interrupt(); } static void ActionCoarseRealtimeBintime( void *arg ) @@ -266,6 +282,8 @@ static void ActionCoarseRealtimeBintime( void *arg ) tc->state = STATE_GET_TIMECOUNT_BEFORE; rtems_clock_get_realtime_coarse_bintime( &bt ); tc->state = STATE_GET_TIMECOUNT_AFTER; + + T_interrupt_test_busy_wait_for_interrupt(); } static void ActionCoarseRealtimeTimeval( void *arg ) @@ -277,6 +295,8 @@ static void ActionCoarseRealtimeTimeval( void *arg ) tc->state = STATE_GET_TIMECOUNT_BEFORE; rtems_clock_get_realtime_coarse_timeval( &tv ); tc->state = STATE_GET_TIMECOUNT_AFTER; + + T_interrupt_test_busy_wait_for_interrupt(); } static void ActionCoarseMonotonic( void *arg ) @@ -288,6 +308,8 @@ static void ActionCoarseMonotonic( void *arg ) tc->state = STATE_GET_TIMECOUNT_BEFORE; rtems_clock_get_monotonic_coarse( &ts ); tc->state = STATE_GET_TIMECOUNT_AFTER; + + T_interrupt_test_busy_wait_for_interrupt(); } static void ActionCoarseMonotonicBintime( void *arg ) @@ -299,6 +321,8 @@ static void ActionCoarseMonotonicBintime( void *arg ) tc->state = STATE_GET_TIMECOUNT_BEFORE; rtems_clock_get_monotonic_coarse_bintime( &bt ); tc->state = STATE_GET_TIMECOUNT_AFTER; + + T_interrupt_test_busy_wait_for_interrupt(); } static void ActionCoarseMonotonicTimeval( void *arg ) @@ -310,6 +334,8 @@ static void ActionCoarseMonotonicTimeval( void *arg ) tc->state = STATE_GET_TIMECOUNT_BEFORE; rtems_clock_get_monotonic_coarse_timeval( &tv ); tc->state = STATE_GET_TIMECOUNT_AFTER; + + T_interrupt_test_busy_wait_for_interrupt(); } static void ActionBootTime( void *arg ) @@ -321,6 +347,8 @@ static void ActionBootTime( void *arg ) tc->state = STATE_GET_TIMECOUNT_BEFORE; rtems_clock_get_boot_time( &ts ); tc->state = STATE_GET_TIMECOUNT_AFTER; + + T_interrupt_test_busy_wait_for_interrupt(); } static void ActionBootTimeBintime( void *arg ) @@ -332,6 +360,8 @@ static void ActionBootTimeBintime( void *arg ) tc->state = STATE_GET_TIMECOUNT_BEFORE; rtems_clock_get_boot_time_bintime( &bt ); tc->state = STATE_GET_TIMECOUNT_AFTER; + + T_interrupt_test_busy_wait_for_interrupt(); } static void ActionBootTimeTimeval( void *arg ) @@ -343,6 +373,8 @@ static void ActionBootTimeTimeval( void *arg ) tc->state = STATE_GET_TIMECOUNT_BEFORE; rtems_clock_get_boot_time_timeval( &tv ); tc->state = STATE_GET_TIMECOUNT_AFTER; + + T_interrupt_test_busy_wait_for_interrupt(); } static void CallTimcounterWindupTwice( const Timecounter *tc ) @@ -351,7 +383,7 @@ static void CallTimcounterWindupTwice( const Timecounter *tc ) /* * Make sure that tc_windup() was called at least twice to increment the - * generation number for * both timehands. + * generation number for both timehands. */ _Timecounter_Acquire( &lock_context ); |