summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2017-12-08 12:15:12 -0600
committerJoel Sherrill <joel@rtems.org>2017-12-08 12:16:14 -0600
commit1307e759e31af452b614ea341759f638dc81423f (patch)
tree95aac55764d7f04c447121777d7e16ea3b45887d /testsuites
parentsp08: Disable RTEMS_INTERRUPT_MASK testing when SMP enabled (diff)
downloadrtems-1307e759e31af452b614ea341759f638dc81423f.tar.bz2
tm08: Do not use RTEMS_INTERRUPT_MASK for no reschedule case
Updates #3000.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/tmtests/tm08/task1.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/testsuites/tmtests/tm08/task1.c b/testsuites/tmtests/tm08/task1.c
index dd9b4793f8..389a0642de 100644
--- a/testsuites/tmtests/tm08/task1.c
+++ b/testsuites/tmtests/tm08/task1.c
@@ -78,10 +78,11 @@ rtems_task test_task(
)
{
rtems_status_code status;
- uint32_t index;
+ uint32_t index;
rtems_task_priority old_priority;
rtems_time_of_day time;
- uint32_t old_mode;
+ rtems_mode old_mode;
+ rtems_mode desired_mode;
benchmark_timer_initialize();
for ( index=1 ; index <= OPERATION_COUNT ; index++ )
@@ -140,16 +141,18 @@ rtems_task test_task(
0
);
+ desired_mode = old_mode;
+
benchmark_timer_initialize();
for ( index=1 ; index <= OPERATION_COUNT ; index++ ) {
(void) rtems_task_mode(
- RTEMS_INTERRUPT_LEVEL(1),
- RTEMS_INTERRUPT_MASK,
+ RTEMS_TIMESLICE_MASK,
+ desired_mode,
&old_mode
);
(void) rtems_task_mode(
- RTEMS_INTERRUPT_LEVEL(0),
- RTEMS_INTERRUPT_MASK,
+ RTEMS_TIMESLICE_MASK,
+ desired_mode,
&old_mode
);
}
@@ -183,7 +186,7 @@ rtems_task test_task(
/* preempted by test_task1 */
benchmark_timer_initialize();
- (void) rtems_task_mode( RTEMS_PREEMPT, RTEMS_PREEMPT_MASK, &old_mode );
+ (void) rtems_task_mode( RTEMS_PREEMPT, RTEMS_PREEMPT_MASK, &old_mode );
build_time( &time, 1, 1, 1988, 0, 0, 0, 0 );